【问题标题】:Driving directions with traffic有交通的行车路线
【发布时间】:2011-03-21 09:30:51
【问题描述】:

如何获取两个交通拥堵地点之间的行驶时间。 This information is displayed on iPhone maps application, when 'Show Traffic' option is selected.

感谢您的帮助。

【问题讨论】:

    标签: javascript ios iphone google-maps


    【解决方案1】:

    您必须以 >>Maps business customer 的身份购买并将 >>DirectionsRequest 对象的 durationInTraffic 属性设置为 true:

    durationInTraffic (可选) 指定DirectionsLeg 结果应包括考虑当前的持续时间 交通状况。此功能仅适用于地图 商业客户。只会返回当前流量中的时间 如果请求的区域有交通信息。

    如果不是企业客户,您将无法在计算路线时考虑当前的交通状况,但您仍然可以在地图中 >>activate the traffic layer 在地图上显示当前的交通状况。

    【讨论】:

      猜你喜欢
      • 2013-12-08
      • 1970-01-01
      • 2022-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-13
      • 1970-01-01
      相关资源
      最近更新 更多