Package com.mapbox.navigation.base.extensions

Functions

applyDefaultNavigationOptions
Link copied to clipboard
fun RouteOptions.Builder.applyDefaultNavigationOptions(): RouteOptions.Builder
Applies the RouteOptions that are required for the route request to execute or otherwise recommended for the Navigation SDK and all of its features to provide the best car navigation experience.
applyLanguageAndVoiceUnitOptions
Link copied to clipboard
fun RouteOptions.Builder.applyLanguageAndVoiceUnitOptions(context: Context): RouteOptions.Builder
Applies the RouteOptions that adapt the returned instructions' language and voice unit based on the device's Locale.
coordinates
Link copied to clipboard
fun RouteOptions.Builder.coordinates(origin: Point, waypoints: List<Point>? = null, destination: Point): RouteOptions.Builder
Takes a list of Points and correctly adds them as waypoints in the correct order.