CLLocation *location=[[CLLocation alloc] initWithLatitude:48.8582 longitude:2.2945];
CLGeocoder *geocoder = [[CLGeocoder alloc] init];
[geocoder reverseGeocodeLocation:location completionHandler:^(NSArray *placemarks, NSError *error) {
if(placemarks.count){
NSDictionary *addressDictionary = [[placemarks objectAtIndex:0] addressDictionary];
NSLog(@"Address%@",addressDictionary);
}
}];
No comments:
Post a Comment