Skip to main content

RouteRequestOptions

type RouteRequestOptions = object;

Options of Navigation.requestRoutes.

Properties​

PropertyTypeDescription
alternatives?booleanAlso return alternative routes. Defaults to false.
exclude?string[]Road classes to avoid, e.g. ['toll', 'ferry'].
language?stringLanguage of instructions, e.g. en or de-DE.
profile?"driving-traffic" | "driving" | "walking" | "cycling"Mapbox Directions profile. Defaults to driving-traffic.
units?"metric" | "imperial"Unit of the distances in voice instructions.
waypointsWaypoint[]Origin first, destination last.