简体   繁体   English

Google Maps API使用到达时间和持续时间

[英]Google maps API using arrival time with traffic duration

The Google Maps API docs as well as all questions I have found on Stack Overflow all state that departure time must be included to return traffic duration. Google Maps API文档以及我在Stack Overflow上发现的所有问题都表明,必须包含出发时间才能返回交通持续时间。 However, my application requires the use of arrival time and not departure time. 但是,我的申请要求使用到达时间而不是出发时间。

The docs state that one can pass either departure or arrival time, but this is not mentioned in relation to duration_in_traffic. 文档指出,可以通过出发时间或到达时间,但这与duration_in_traffic无关。 Is it possible to pass arrival time instead of departure time and still receive the duration_in_traffic? 是否可以通过到达时间而不是出发时间并仍然收到duration_in_traffic? Maps itself does this, I don't see a reason for Google's API to be any different. Maps本身就是这样做的,我看不出Google API有什么不同的原因。

This is not currently possible, but there is a long-standing feature request to have this feature added. 目前尚无法实现,但是长期以来一直要求添加此功能。 You can star the issue to receive updates and show Google that there is additional interest. 您可以为该问题加注星标以接收更新,并向Google展示您还有其他兴趣。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM