メインコンテンツまでスキップ

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
}
}
この{Type}は役に立ちましたか?