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.

Dash.init(
applicationContext = applicationContext,
accessToken = getString(R.string.mapbox_access_token)
) {
routeOptions {
avoidHighways = true
avoidTolls = true
avoidFerries = true
}
}

It is also possible to update routing options in runtime:

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