如何解决 geoCoder 错误:503
我尝试了很多解决方案,但似乎没有一个对我有用。大约有四分之一的时间我
/SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-51.2/Runtime/PBRequester.m:684 server returned error: 503
在类级别声明了地理编码器并添加了保留属性(就像苹果的 CurrentAddress 示例代码一样)并在 dealloc 方法中发布。
在实例化过程中,我已将其添加到自动释放池中,如下所示
self.reverseGeocoder =[[[MKReverseGeocoder alloc] initWithCoordinate:newLocation.coordinate]autorelease];
reverseGeocoder.delegate=self;
[reverseGeocoder start];
这是我从其他解决方案获得的建议。显然,似乎没有什么对我有用。
我做错了什么吗?我开始想知道是否有解决方案? :(
提前致谢
I have tried so many solutions but nothing seems to work for me. Approximately one out of every 4 times i get
/SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-51.2/Runtime/PBRequester.m:684 server returned error: 503
I have declared the geocoder at the class level and added a retain property (just like in apple's CurrentAddress sample code) and released in dealloc method.
During instantiation i have added it to the autorelease pool as shown below
self.reverseGeocoder =[[[MKReverseGeocoder alloc] initWithCoordinate:newLocation.coordinate]autorelease];
reverseGeocoder.delegate=self;
[reverseGeocoder start];
This was the suggestions i got from other solutions. Apparently nothing seems to work for me.
Am i doing something wrong? I am beginning to wonder if there a solution at all? :(
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为你需要通过谷歌地图API
这可能会帮助你
http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true
I think you need to go through google map api
this may help you
http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true
我认为你需要使用 google api 来获取地图。
您需要通过自定义函数在 UiWebView 上运行 java/Script...
I think you need to go for google api for map.
You need to run java/Script on UiWebView by your custom function...