How to calculate time required to complete the path in between two locations?

独自空忆成欢 提交于 2019-12-11 04:35:58

问题


I want to calculate the time require to complete path in between two location as like in Maps application in which if you will find the path in two location then it will also show you the estimated time required to complete it.

Please suggest me regarding it.

Thanks in advance.


回答1:


If you use the Google Directions API you will be provided with a duration for the trip as part of the returned route. All you have to do is specify whether it should calculate for walking, bicycling or driving.



来源:https://stackoverflow.com/questions/6094776/how-to-calculate-time-required-to-complete-the-path-in-between-two-locations

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!