I am trying to show addresses of a certain list of Latitude/Longitude using MKReverseGeocoder i get values of some Lat/Long right,while for some i get {PBHTTPStatusCode=503} /SourceCache/ProtocolBuffer/ProtocolBuffer-92/Runtime/PBRequester.m:687 server returned
I have a dynamic list of lat/long just like foursquare app.
Some of my code: Where pData contains the list of lat/long
-(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);
}
Can any help me out in this!
Thnx a lot