谷歌地图API获取持续时间没有流量

问题描述:

我知道durationIntraffic现在已经过时了。
我只是无法找到一种方法来获得没有流量的持续时间使用谷歌API。
已经尝试了使用DrivingOptions和trafficModel的矩阵,但持续时间和duration_in_traffic与Maps.Google.com中没有流量的持续时间不匹配。

I know that the durationIntraffic is depracated now. I just cant find a way to get the duration without traffic using google api. already tried the matrix using DrivingOptions and trafficModel but the duration and duration_in_traffic did not match the duration without traffic in Maps.Google.com

有关如何使用API​​获取没有流量数据的持续时间?

Any help on how to get the duration without traffic data using API?

图片

持续时间会给出流量中的平均时间和持续时间,从而为流量带来时间。有时您会在midnignt运行googleApi你会发现在交通时间的持续时间比持续时间更短意味着持续时间不是没有交通时间。

Duration gives average time and duration in Traffic gives time in traffic .sometimes you run googleApi at midnignt you will find duration in Traffic time is lesser than duration time means duration is not without traffic time.