AlternativeRoutesOptions

fun AlternativeRoutesOptions(    maxAlternatives: Int = 1,     alternativeType: AlternativeType = AlternativeType.ANY_ROUTE,     minDeviationDistance: Distance = Distance.ZERO,     minDeviationTime: Duration = Duration.ZERO)

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.