Reputation: 61
Is there any method that implement forward geocoding on Google Maps SDK? I don't want to use the Google Maps API Web Services. Thank you
Upvotes: 2
Views: 1993
Reputation: 6692
Per your comment, you can use the native CLGeocoder class. Forward-geocoding requests take a user-readable address and find the corresponding latitude and longitude value.
CLGeocoder geocoder = [[CLGeocoder alloc] init];
[geocoder geocodeAddressString:@"1 Infinite Loop"
completionHandler:^(NSArray* placemarks, NSError* error){
for (CLPlacemark* aPlacemark in placemarks)
{
// Process the placemark.
}
}];
Upvotes: 1