0
我想使用MKReverseGeocoder顯示一定緯度/經度列表的地址,我得到一些Lat/Long右值,而對於一些我得到{PBHTTPStatusCode = 503}/SourceCache/ProtocolBuffer/ProtocolBuffer-92/Runtime/PBRequester .m:687服務器返回如何從Lat/Long顯示多個地址以顯示在tableView中?
我有一個lat/long的動態列表,就像foursquare應用程序一樣。
我的一些代碼:凡pData所包含的緯度/長
-(void)network:(WNetwork*)network didFinishLoadingWithRequest:(NSInteger)pReq data:(NSMutableDictionary*)pData{
for (NSDictionary *dic in pData) {
CLLocationCoordinate2D coord;
coord.longitude = [[dic objectForKey:@"long"]doubleValue];
coord.latitude = [[dic objectForKey:@"Lat"]doubleValue];
MKReverseGeocoder *geocoder = [[MKReverseGeocoder alloc] initWithCoordinate:coord];
[geocoder setDelegate:self];
[geocoder start];
}
}
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{
NSLog(@"The geocoder has returned: %@", [placemark addressDictionary]);
}
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error{
NSLog(@"error people: %@", error);
}
可以在任何幫助我在這個列表中!
日Thnx很多