AlternativeRoutesOptions
data class AlternativeRoutesOptions( val maxAlternatives: Int = 1, val alternativeType: AlternativeType = AlternativeType.ANY_ROUTE, val minDeviationDistance: Distance = Distance.ZERO, val minDeviationTime: Duration = Duration.ZERO)
Content copied to clipboard
Specifies options related to alternative routes.
Important: This is a Public Preview API. It may be changed or removed at any time.
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.
minDeviationDistance
Do not report alternatives that do not differ from an existing route on at least this distance.
minDeviationTime
Do not report alternatives which do not have at least this travel time on sections different from an existing route.
Constructors
Link copied to clipboard
fun AlternativeRoutesOptions( maxAlternatives: Int = 1, alternativeType: AlternativeType = AlternativeType.ANY_ROUTE, minDeviationDistance: Distance = Distance.ZERO, minDeviationTime: Duration = Duration.ZERO)
Content copied to clipboard