【发布时间】: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
如何获取两个交通拥堵地点之间的行驶时间。 This information is displayed on iPhone maps application, when 'Show Traffic' option is selected.
感谢您的帮助。
【问题讨论】:
标签: javascript ios iphone google-maps
您必须以 >>Maps business customer 的身份购买并将 >>DirectionsRequest 对象的 durationInTraffic 属性设置为 true:
durationInTraffic(可选) 指定DirectionsLeg结果应包括考虑当前的持续时间 交通状况。此功能仅适用于地图 商业客户。只会返回当前流量中的时间 如果请求的区域有交通信息。
如果不是企业客户,您将无法在计算路线时考虑当前的交通状况,但您仍然可以在地图中 >>activate the traffic layer 在地图上显示当前的交通状况。
【讨论】: