我正在使用Googleway软件包,我没有任何区别"悲观","乐观"&在提到"驾驶","步行"或"骑自行车"模式时,BEST_GUESS"以及结果相似。也许我的代码错了:
google_distance(origins = "place Viarme 44000 nantes",
destinations = "rue de strasbourg Nantes",
mode="driving",
departure_time=heure_dep,
traffic_model='best_guess',
key = key,
simplify = T)
google_distance(origins = "place Viarme 44000 nantes",
destinations = "rue de strasbourg Nantes",
mode="bicycling",
departure_time=heure_dep,
traffic_model='best_guess',
key = key,
simplify = T)
谢谢
现在应该在最新版本版本(v2.2.0(
中修复。google_distance(origins = "place Viarme 44000 nantes",
destinations = "rue de strasbourg Nantes",
mode="driving",
departure_time=heure_dep,
traffic_model='best_guess',
key = key,
simplify = T)
# ...
# $rows
# elements
# 1 1.3 km, 1308, 6 mins, 368, 5 mins, 292, OK
google_distance(origins = "place Viarme 44000 nantes",
destinations = "rue de strasbourg Nantes",
mode="driving",
departure_time=heure_dep,
traffic_model='pessimistic',
key = key,
simplify = T)
# ...
# $rows
# elements
# 1 1.3 km, 1308, 6 mins, 368, 5 mins, 293, OK
google_distance(origins = "place Viarme 44000 nantes",
destinations = "rue de strasbourg Nantes",
mode="bicycling",
departure_time=heure_dep,
traffic_model='best_guess',
key = key,
simplify = T)
# ...
# $rows
# elements
# 1 1.4 km, 1364, 6 mins, 331, OK
google_distance(origins = "place Viarme 44000 nantes",
destinations = "rue de strasbourg Nantes",
mode="walking",
departure_time=heure_dep,
traffic_model='best_guess',
key = key,
simplify = T)
# ...
# $rows
# elements
# 1 1.2 km, 1187, 15 mins, 915, OK