Package com.mapbox.navigation.base.extensions

Functions

Link copied to clipboard
fun RouteOptions.Builder.applyDefaultNavigationOptions(profile: String = DirectionsCriteria.PROFILE_DRIVING_TRAFFIC): RouteOptions.Builder

Applies the RouteOptions that are required for the route request for the selected profile to execute or otherwise recommended for the Navigation SDK and all of its features to provide the best car navigation experience. See also https://docs.mapbox.com/api/navigation/directions/.

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.

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.