我想知道是否有人知道如何获得经纬度地址列表?iOS - 获取长/纬度的地址
我一直在使用下面的代码,但它总是产生一个地址:
[self.geocoder reverseGeocodeLocation: currentLocation completionHandler:
^(NSArray *placemarks, NSError *error) {
for (int i = 0; i < placemarks.count; i++)
{
CLPlacemark *placemark = [placemarks objectAtIndex:i];
if (placemark.addressDictionary != nil)
{
Location *aLocation = [[Location alloc] init];
aLocation.locationName = [placemark.addressDictionary valueForKey:@"Name"];
aLocation.locationAddress = [placemark.addressDictionary valueForKey:@"City"];
aLocation.currentLocation = placemark.location;
[self.tableData addObject:aLocation];
}
}
[self.locationsTableView reloadData];
}];
检查 这里
getReverseGeocode
方法调用这个问题http://stackoverflow.com/questions/158557/get-street-address-at-lat-long-pair – Spire 2013-03-12 15:21:44http://stackoverflow.com/questions/13557026/can-you-create-an-annotation-in-mapview-from-an-address/13564318#13564318 – Rajneesh071 2013-03-12 15:37:56
你在寻找什么样的地址?你想要所有的邮寄地址或只是特定的地标(地点)? – Jeffrey 2013-05-09 19:37:04