Iphone 如何解决错误:-/SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-51.2/Runtime/PBRequester.m:684服务器使用反向编码返回错误:503?
当我在iphone中使用反向地理编码时,我在控制台中遇到了这个错误 /SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-51.2/Runtime/PBRequester.m:684服务器返回错误:503Iphone 如何解决错误:-/SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-51.2/Runtime/PBRequester.m:684服务器使用反向编码返回错误:503?,iphone,ios,mkmapview,reverse-geocoding,Iphone,Ios,Mkmapview,Reverse Geocoding,当我在iphone中使用反向地理编码时,我在控制台中遇到了这个错误 /SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-51.2/Runtime/PBRequester.m:684服务器返回错误:503 这意味着什么?如何消除此错误以获取当前位置的地理编码信息?我已经在模拟器和设备中运行了这个程序,在过去两天中发生了相同的错误。几天前,它提供了正确的信息。我可以通过以下方式解决此问题: 首先在我的界面中,我使用 MKReverseGeocoder *mk
这意味着什么?如何消除此错误以获取当前位置的地理编码信息?我已经在模拟器和设备中运行了这个程序,在过去两天中发生了相同的错误。几天前,它提供了正确的信息。我可以通过以下方式解决此问题: 首先在我的界面中,我使用
MKReverseGeocoder *mkReverseGeocoder;
在我的实现中
CLLocation *currLocation;
currLocation = [locationManager location];
if(mkReverseGeocoder)
{
[mkReverseGeocoder autorelease];
}
mkReverseGeocoder = [[MKReverseGeocoder alloc] initWithCoordinate:[currLocation coordinate]];
[mkReverseGeocoder setDelegate:self];
[mkReverseGeocoder start];
并使用委托方法
- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{
NSString *msg = [[NSString alloc] initWithFormat:@"%@",[[placemark addressDictionary] objectForKey:@"FormattedAddressLines"]];
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Details:" message:msg delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alertView show];
[alertView release];
[msg release];
}
完成此操作后,我可以获得反向编码信息。可能的重复项