1

我正在使用 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)

谢谢

4

1 回答 1

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
于 2017-06-28T21:49:09.490 回答