例如,触摸地图的某个区域并看到带有国家名称的警报,点击
问问题
325 次
2 回答
2
谢谢大家想通了
CLLocation *location = [[CLLocation alloc] initWithLatitude:55.755773 longitude:37.617761];
CLGeocoder *geocoder = [CLGeocoder new];
[geocoder reverseGeocodeLocation:location completionHandler:^(NSArray *placemarks, NSError *error) {
CLPlacemark *placemark = [placemarks objectAtIndex:0];
NSLog(@"%@ %@ %@ %@ %@ %@ %@ %@", placemark.country, placemark.ISOcountryCode, placemark.postalCode, placemark.administrativeArea, placemark.locality, placemark.subLocality, placemark.thoroughfare, placemark.subThoroughfare);
}];
于 2012-10-22T10:32:38.807 回答
1
搜索“反向地理编码”
于 2012-10-22T09:51:03.880 回答