Hello I have a problem using the googlway package in R. More specifically, it concerns the google_distance function and the selection of the trafic model. When I execute my script:
x <- as.POSIXct("2017-02-2 00:00:00", tz = "Europe/Paris")
google_distance(origins = list(c(48.93, 2.175)),
destinations =list(c(48.95, 2.19)),
mode="driving",
departure_time=x,
traffic_model='pessimistic',
key = key,
simplify = T)
I receive the following message: Error in match.arg(traffic_model) : 'arg' should be one of
When I drop the line "traffic_model='pessimistic'" I don't have any problem.
Any idea?