CostModel

data class CostModel(val routeType: RouteType = RouteType.Fast, val considerTraffic: ConsiderTraffic = ConsiderTraffic.Yes, val avoidOptions: AvoidOptions? = null)

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.

Constructors

Link copied to clipboard
fun CostModel(routeType: RouteType = RouteType.Fast, considerTraffic: ConsiderTraffic = ConsiderTraffic.Yes, avoidOptions: AvoidOptions? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard