MKReverseGeocoder *geoCoder = [[[MKReverseGeocoder alloc] initWithCoordinate:coordinate2D] autorelease];
geoCoder.delegate = self;
[geoCoder start];
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{
NSString *local=placemark.locality;
if (local) {
NSString *address = [NSString stringWithFormat:@"%@ %@ %@ %@ %@%@",
placemark.country,
placemark.administrativeArea,
placemark.locality,
placemark.subLocality,
placemark.thoroughfare,
placemark.subThoroughfare];
NSLog(@"经纬度所对应的详细:%@", address);
}
}
Q:为什么address取到的值都是拼音呢,而不是中文??比如说placemark.country得到的值是China,placemark.administrativeArea得到的值是guangdong。