RoutingConfiguration

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

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, countryConfiguration: CountryConfiguration? = null)

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 country configuration is used to configure if the navigation should stay in a certain country or avoid countries.

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. This applies to the whole trip as a single vehicle is used for all stops.