character vector of length one with address to be geocoded
numeric vector of length two (lon, lat)
matrix with one row and two columns (lon, lat)
sf or sfc point layer with one feature
waypoints: Waypoints, in one of the same formats as for origins but possibly with more than one location, i.e.
character vector with addresses to be geocoded
numeric vector of length two (lon, lat)
matrix with two columns (lon, lat)
sf or sfc point layer
destination: Destination, in one of the same formats as for origins
mode: Travel mode, one of: "driving" (default), "transit", "walking", "bicycling"
arrival_time: The desired time of arrival for transit directions, as POSIXct
departure_time: The desired time of departure, as POSIXct
alternatives: Whether to return more than one alternative (logical, default is FALSE)
avoid: NA (default, means avoid nothing) or one of: "tolls", "highways", "ferries" or "indoor"
region: The region code, specified as a ccTLD ("top-level domain") two-character value (e.g. "es" for Spain) (optional)
traffic_model: The traffic model, one of: "best_guess" (the default), "pessimistic", "optimistic". The traffic_model parameter is only taken into account when departure_time is specified!
transit_mode: Transit preferred mode, one or more of: "bus", "subway", "train" or "tram"
transit_routing_preference: Transit route preference. NA (default, means no preference) or one of: "less_walking" or "fewer_transfers"