谷歌地图API获取持续时间没有流量 [英] Google Map API Get Duration without traffic

查看:212
本文介绍了谷歌地图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.

这篇关于谷歌地图API获取持续时间没有流量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆