【问题标题】:Getting No response from google direction api谷歌方向api没有响应
【发布时间】:2013-03-16 02:55:25
【问题描述】:

我正在使用谷歌方向 api 来获取两个地方之间的方向/路线。

当我查询时

http://maps.googleapis.com/maps/api/directions/json?origin=New%20York%20LaGuardia%20Airport%20Marriott,%20Queens,%20NY,%20United%20States&destination=200%20e%2057th%20st%20ny&sensor=false

我正在获取状态 = NOT_FOUND。

但是,当我使用 https://maps.google.com/ 搜索从 New York LaGuardia Airport Marriott, Queens, NY, United States200 e 57th st ny 的路径时。谷歌显示这两个地方之间的方向路径。您可以通过链接查看:link

我应该怎么做才能从 google api 获得响应。

谢谢。

【问题讨论】:

    标签: google-maps-api-3 google-directions-api


    【解决方案1】:

    Google 地图使用许多位置数据来源,包括地方信息结果。在我看来,方向服务找不到“纽约拉瓜迪亚机场万豪酒店,皇后区,纽约州,美国”(因为它不是地址)。如果我使用 Places API,那可以找到它。

    example using the javascript APIs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-29
      • 1970-01-01
      • 2020-09-13
      • 1970-01-01
      • 1970-01-01
      • 2018-11-11
      • 2018-11-15
      • 2017-09-22
      相关资源
      最近更新 更多