is time in mapdist function real-time travel time or static?

假装没事ソ 提交于 2019-12-01 09:30:11

问题


I am interested in driving distance and time using the mapdist function in ggmap.

Is this travel time timely updated (real-time traffic information) or constant (travel time is always the same whenever we use "mapdist" for each OD? Thanks!

mapdist(from='18.958011, 72.819789', to='18.958558, 72.831462', mode="driving", output="simple")

I got the information like time:

from                   to    m    km     miles seconds  minutes      hours
1 18.958011, 72.819789 18.958558, 72.831462 1304 1.304 0.8103056     241 4.016667 0.06694444

回答1:


This function uses standard google API. There you can find that you would have to specify optional parameter departure_time to your request, to take traffic under consideration.

And if you look into mapdist source code you can see that departure_time is not part of your request (neither as parameter, or default option).



来源:https://stackoverflow.com/questions/26496603/is-time-in-mapdist-function-real-time-travel-time-or-static

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