In my application I am trying to use Geocoder, but only one value is always returned when requested. This cannot be, since many addresses must be displayed by the name of the street. I would like to know if there is a solution to this problem or should I use a different tool?
Code
CLGeocoder *geocoder = [[CLGeocoder alloc] init];
[geocoder geocodeAddressString:@"Хользунова" completionHandler:^(NSArray* placemarks, NSError* error)
{
if (error)
{
return; // TODO: handle error
}
NSLog(@"Count placemarks: %@", @(placemarks.count));
for (CLPlacemark *placemark in placemarks)
{
NSLog(@"Placemark: %@", placemark);
}
}];