RouteRequestOptions
type RouteRequestOptions = object;
Options of Navigation.requestRoutes.
Properties
| Property | Type | Description |
|---|---|---|
alternatives? | boolean | Also return alternative routes. Defaults to false. |
exclude? | string[] | Road classes to avoid, e.g. ['toll', 'ferry']. |
language? | string | Language 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. |
waypoints | Waypoint[] | Origin first, destination last. |