【问题标题】:getting the current traffic status through Google Maps通过谷歌地图获取当前交通状况
【发布时间】:2014-05-22 09:42:07
【问题描述】:

如果我从一个地方旅行到另一个地方并使用来自 Google Map API 的行车路线 如何使用 Google Map API 计算旅行期间的交通状况?

提前致谢

【问题讨论】:

    标签: android google-maps gis directions driving-directions


    【解决方案1】:

    目前的 API 无法获取流量数据。 Distance Matrix API 或 Directions API 考虑了流量,但您无法获取实际流量的数据。

    【讨论】:

      【解决方案2】:

      根据documentation,距离矩阵 API 允许 Google Maps API for Business 用户输入departure_time,以便在考虑当前交通状况的情况下获得旅行时间估计(“旅行持续时间”)。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-01-09
        • 1970-01-01
        • 2014-04-12
        • 1970-01-01
        • 2016-09-15
        • 1970-01-01
        • 2021-09-11
        • 2010-11-15
        相关资源
        最近更新 更多