- (void)getAddressFromLatLon:(CLLocation*)location theAnnotation:(TrafficAnnotation*)annotation {
CLGeocoder *geocoder = [[CLGeocoder alloc] init];
[geocoder reverseGeocodeLocation:location completionHandler:^(NSArray *placemarks, NSError *error){
if (placemarks && placemarks.count > 0) {
CLPlacemark *placemark= [placemarks objectAtIndex:0];
NSString *address = [NSString stringWithFormat:@"%@ , %@ , %@, %@", [placemark thoroughfare], [placemark locality], [placemark administrativeArea], [placemark country]];
NSLog(@"New Address Is:%@", address);
}
}];
}
[Read More]