【问题标题】:Google Directions API says zero_results for transit modeGoogle Directions API 表示公交模式的 zero_results
【发布时间】:2017-07-18 21:01:34
【问题描述】:

所以我打算在我的应用程序中使用 Google Directions API 来规划我所在城市的公交路线。 https 请求返回 ZERO_RESULTS,即使 Google 地图支持我所在城市的交通模式。

The Directions API request

And the same route planned with Google Maps

有没有其他方法可以解决这个问题或我可以使用的任何其他 API?

【问题讨论】:

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


    【解决方案1】:

    Google Maps API 是一个单独的产品,因此它与 Google Maps 网站或原生应用不同。通常,如果您无法在 API 中找到公交路线,则意味着 Google 无法在 API 中为特定区域提供公交路线。

    您可以使用以下页面查看您所在国家/地区的公交路线:

    https://maps.google.com/landing/transit/cities/#Europe

    我在列表中看不到 Székesfehérvár。

    很遗憾,我无法推荐任何替代 API。

    【讨论】:

      猜你喜欢
      • 2018-05-26
      • 1970-01-01
      • 1970-01-01
      • 2016-08-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多