谷歌方向 API 持续时间是否反映实时流量?
I have been following android get duration from maps.google.com directions and I seem to be doing okay, but I have a question: does the duration returned in the JSON from google maps adjust for real time traffic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据 google 路线 api 开发者文档上的定义:
我认为这意味着不,持续时间不会根据实时交通进行调整。
From the definitions on the google developers documentation for directions api :
I would take this to mean that no, duration doesn't not adjust for real time traffic.
通过获取一天中不同时间的持续时间,可以凭经验确定问题的答案。我想你会发现它不是基于实时的。
该文档没有提及实时流量。虽然这还不是决定性的,但考虑实时交通状况将是一个妙招,并且很可能被包括在内。
It's possible to determine the answer to the question empirically by getting the duration at different times of day. I think you'll find it is not real-time based.
The documentation does not make mention of real-time traffic. While that's not conclusive, accounting for real-time traffic conditions would be rather a coup and highly likely to be included.