问题
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