AlternativeRoutesOptions

data class AlternativeRoutesOptions(val maxAlternatives: Int, val alternativeType: AlternativeType? = null, val minDeviationDistance: <Error class: unknown class>? = null, val minDeviationTime: <Error class: unknown class>? = null)

Specifies options related to alternative routes.

Parameters

maxAlternatives

Maximum number of alternative routes to generate in addition to the primary route.

alternativeType

Whether to find only better routes or any alternative to a given reference route. Can only be used with route reconstructions.

minDeviationDistance

Follow the reference route for at least this distance before deviating. Can only be used with route reconstructions.

minDeviationTime

Follow the reference route for at least this travel time before deviating. Can only be used with route reconstructions.

Constructors

Link copied to clipboard
constructor(maxAlternatives: Int, alternativeType: AlternativeType? = null, minDeviationDistance: <Error class: unknown class>? = null, minDeviationTime: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val minDeviationDistance: <Error class: unknown class>? = null
Link copied to clipboard
val minDeviationTime: <Error class: unknown class>? = null