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
alleyBias = -0.2
maxWidth = 2.2
}
}
It is also possible to update routing options in runtime:
Dash.applyUpdate {
routeOptions {
avoidHighways = false
avoidTolls = false
avoidFerries = false
alleyBias = 0.0
maxWidth = 1.9
}
}
Was this page helpful?