List of available modes of transport.

ors_profile(
  mode = c("car", "hgv", "bike", "roadbike", "mtb", "e-bike", "walking", "hiking",
    "wheelchair")
)

Arguments

mode

Profile label.

Value

Profile name, or named vector of available profiles.

Details

Convenience function for specifying the profile in ors_directions(), ors_isochrones() and ors_matrix().

Author

Andrzej Oleś andrzej.oles@gmail.com

Examples

# list availbale profiles
ors_profile()
#>                car                hgv               bike           roadbike 
#>      "driving-car"      "driving-hgv"  "cycling-regular"     "cycling-road" 
#>                mtb             e-bike            walking             hiking 
#> "cycling-mountain" "cycling-electric"     "foot-walking"      "foot-hiking" 
#>         wheelchair 
#>       "wheelchair" 

# retrieve full profile name based on label
ors_profile("car")
#> [1] "driving-car"