CostModel

data class CostModel(    val routeType: RouteType = RouteType.FAST,     val considerTraffic: ConsiderTraffic = ConsiderTraffic.YES,     val avoidOptions: AvoidOptions? = null,     val supportingPoints: List<List<GeoCoordinate>> = emptyList())

Criteria that specify what paths to prefer during routing.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

routeType

The overall path preference.

considerTraffic

Whether to ignore traffic.

avoidOptions

What to avoid.

supportingPoints

Polyline points to follow for each leg.

Constructors

Link copied to clipboard
fun CostModel(    routeType: RouteType = RouteType.FAST,     considerTraffic: ConsiderTraffic = ConsiderTraffic.YES,     avoidOptions: AvoidOptions? = null,     supportingPoints: List<List<GeoCoordinate>> = emptyList())

Properties

Link copied to clipboard
val avoidOptions: AvoidOptions? = null
Link copied to clipboard
val considerTraffic: ConsiderTraffic
Link copied to clipboard
val routeType: RouteType
Link copied to clipboard
val supportingPoints: List<List<GeoCoordinate>>