- origin
sf
object, the origin locations of geometry type POINT
.
- destination
sf
object, the destination locations of geometry type POINT
.
- datetime
POSIXct
object, datetime for the departure (or arrival if arrival = TRUE
).
- arrival
boolean, calculate routes for arrival at the defined time (default = FALSE
)?
- results
numeric, maximum number of suggested routes (Valid range: 1 and 7).
- routing_mode
character, set the routing type: "fast"
or "short"
(default = "fast"
).
- transport_mode
character, set the transport mode: "car"
, "truck"
, "pedestrian"
, "bicycle"
, "scooter"
, "taxi"
, "bus"
or "privateBus"
(default = "car"
).
- traffic
boolean, use real-time traffic or prediction in routing (default = TRUE
)? If no traffic is selected, the datetime
is set to "any"
and the request is processed independently from time.
- avoid_area,
sf
object, area (only bounding box is taken) to avoid in routes (default = NULL
).
- avoid_feature
character, transport network features to avoid, e.g. "tollRoad"
or "ferry"
(default = NULL
).
- consumption_model
character, specify the consumption model of the vehicle (default = NULL
an average electric car is set).
- vignettes
boolean, include vignettes in the total toll cost of routes (default = TRUE
).
- url_only
boolean, only return the generated URLs (default = FALSE
)?