AlternativeRoutesOptions

constructor(maxAlternatives: Int, alternativeType: AlternativeType? = null, minDeviationDistance: Distance? = null, minDeviationTime: Duration? = null)

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.