RoutingConfiguration

data class RoutingConfiguration(val contextToken: String? = null, val transportMode: TransportMode = TransportMode.Car, val avoidTollRoad: Boolean = false)

The RoutingConfiguration struct is used to configure a routing session. It defines different factors that influence resulting routes.

Constructors

Link copied to clipboard
constructor(contextToken: String? = null, transportMode: TransportMode = TransportMode.Car, avoidTollRoad: Boolean = false)

Properties

Link copied to clipboard
val avoidTollRoad: Boolean = false

If true only toll free roads will be considered for the navigation routing.

Link copied to clipboard
val contextToken: String? = null

The context token is used to provide additional information to the routing service. This can add additional context for guiding users individually to their destination. E.g. this might guide them to specific parking spots.

Link copied to clipboard

The transport mode you expect the user to use. The navigation will route the navigation accordingly to the restrictions of the chosen transport mode.