相关疑难解决方法(0)

来自iPhone/SIM的Google地理编码API上的状态代码0,但在网络上正常工作(非英文字符)

试试:http://maps.googleapis.com/maps/api/geocode/json?address =Őrbottyán,Hungary&sensor = true

在iPhone 4和模拟器上,

 -(void)requestFailed:(ASIHTTPRequest *)request {
   NSLog(@"geocode fail code: %d",[request responseStatusCode]);
   NSLog(@"geocoding failed: %@",[request responseString]);
}
2011-06-01 11:36:27.343 app[1174:307] geocode fail code: 0
2011-06-01 11:36:27.345 app[1174:307] geocoding failed: (null)
Run Code Online (Sandbox Code Playgroud)

在浏览器中,我得到:

   "results" : [
    {
    "address_components" : [
        {
           "long_name" : "?rbottyán",
           "short_name" : "?rbottyán",
           "types" : [ "locality", "political" ]
        },
        {
           "long_name" : "Pest",
           "short_name" : "Pest",
           "types" : [ "administrative_area_level_1", "political" ]
        },
        {
           "long_name" : "Hungary",
           "short_name" : "HU",
           "types" : [ …
Run Code Online (Sandbox Code Playgroud)

iphone geocoding google-api reverse-geocoding

2
推荐指数
1
解决办法
3546
查看次数

标签 统计

geocoding ×1

google-api ×1

iphone ×1

reverse-geocoding ×1