CostModel
public struct CostModel
Criteria that specify what paths to prefer during routing.
avoidOptions What to avoid.
Declaration
Swift
public var avoidOptions: AvoidOptions?
Specifies whether current traffic should be considered when planning the route.
Declaration
Swift
public var considerTraffic: ConsiderTraffic?
Creates a CostModel
instance.
Declaration
Swift
public init
(
routeType: RouteType = .fast,
considerTraffic: ConsiderTraffic? = .yes,
avoidOptions: AvoidOptions? = nil
)
Parameters
routeType
|
The overall path preference. |
considerTraffic
|
Specifies whether current traffic should be considered when planning the route. |
avoidOptions
|
What to avoid. |
The overall path preference.
Declaration
Swift
public var routeType: RouteType