Skip to main content

Route options

The Navigation SDK UX Framework allows customize routing options, they affect the active guidance: avoid ferries, avoid highways, and so on.

val config = DashConfig.create(
applicationContext = applicationContext,
accessToken = getString(R.string.mapbox_access_token)
) {
routeOptionsConfig {
avoidHighways = true
avoidTolls = true
avoidFerries = true
}
}
Dash.init(config)

It is also possible to update routing options in runtime:

Dash.applyUpdate {
routeOptionsConfig {
avoidHighways = false
avoidTolls = false
avoidFerries = false
}
}
Was this page helpful?