【问题标题】:Why distance matrix api returning the status "ZERO_RESULTS" even coordinates are correctly mentioned?为什么距离矩阵 api 返回状态“ZERO_RESULTS”,即使坐标被正确提及?
【发布时间】:2017-05-21 08:01:41
【问题描述】:
{
   "destination_addresses" : [ "14.868924,79.873609" ],
   "origin_addresses" : [ "14.843799,79.862726" ],
   "rows" : [
      {
         "elements" : [
            {
               "status" : "ZERO_RESULTS"
            }
         ]
      }
   ],
   "status" : "OK"
}

下面给出了上述响应的 URL,仅更改 API 密钥以进行验证。

https://maps.googleapis.com/maps/api/distancematrix/json?units=metric&origins=14.843799,79.862726&destinations=14.868924,79.873609&mode=walking&key=XXXX

虽然 bing 距离计算 api 已成功返回相同坐标的距离。

【问题讨论】:

  • 您的问题是使用 Bing 地图距离矩阵服务还是 Google 地图?
  • 问题在于 Google 距离矩阵 api
  • 你解决了吗?
  • 是的,问题已解决。

标签: location distance status bing-maps google-distancematrix-api


【解决方案1】:

我向 Google 问题跟踪器报告了这个问题,之后他们在大约 1 个月内修复了它。

https://issuetracker.google.com/u/1/issues/38478121

谢谢

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-10-28
    • 2014-12-14
    • 1970-01-01
    • 2011-03-18
    • 1970-01-01
    • 2013-06-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多