我使用的是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)
由于
答案 0 :(得分:0)
现在应该在最新版本(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