【问题标题】:Reverse GeoCoding not working on blackberry反向地理编码不适用于黑莓
【发布时间】:2012-10-29 11:15:45
【问题描述】:

我正在使用反向地理编码来获取位置名称。我在模拟器上调试并运行以下查询:

http://maps.googleapis.com/maps/geo?json&ll=-42.307546,-101.048116&sensor=false

结果如下:

{
  "name": "-42.307546,-101.048116",
  "Status": {
    "code": 602,
    "request": "geocode"
  }
}

它不会为我获取位置名称。如何找到位置名称?请帮忙。 非常感谢。

【问题讨论】:

  • 当我点击你的链接时,它显示为 { "Status": { "code": 610, "request": "geocode" } }
  • 插入正确的坐标值,然后尝试。
  • 谷歌似乎检测到它是点击请求还是浏览器请求。如果您刷新页面,它将显示问题中显示的相同结果。
  • 纬度和经度的值是在南太平洋上。所以你没有得到地址............

标签: json blackberry geocoding reverse


【解决方案1】:

状态:这包括请求的响应代码,这是确定执行请求时实际发生的情况的简单方法。可能的响应代码如下:

200: Successful request (at least one placemark was returned).
400: Bad request (the server was unable to understand the request).
500: Server error (an unknown internal error occurred).
601: Missing query. This means the q parameter was not specified (or was an empty string).
602: Unknown address. This means that the request was performed but no placemarks were found.
603: Unavailable address. The given address could not be returned due to legal or contractual reasons.
610: An invalid Google Maps API key was specified.
620: Too many queries have been performed using the given API key.

问题是因为纬度和经度的值。

【讨论】:

  • 好的。非常感谢你们。我在我的模拟器上对此进行了测试,这就是我得到这些经度和纬度值的原因。我已经更正了这些值并找到了正确的结果。非常感谢。
【解决方案2】:

那是因为您使用了无效的坐标。尝试这个。 http://maps.googleapis.com/maps/geo?json&ll=35.670392,139.775844&sensor=false

【讨论】:

  • 另外,我想问一下,当我尝试安装我的应用程序时,它向我显示“此应用程序需要以下未安装的模块:net_rim_json_org”。当我将此包添加到我的应用程序并尝试对其进行签名时,它给了我 Duplicate JSONArray.java 的错误。我相信这是因为我安装了 Blackberry JDE 7.0 版。我发现 net_rim_json_org 包包含在黑莓操作系统的第 7 版中。我正在使用的黑莓设备 Blackberry Curve 8520 安装了版本 5。我现在该怎么办?请帮忙。谢谢。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多