CostModel
public struct CostModel
Criteria that specify what paths to prefer during routing.
-
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
-
Specifies whether current traffic should be considered when planning the route.
Declaration
Swift
public var considerTraffic: ConsiderTraffic?
-
avoidOptions What to avoid.
Declaration
Swift
public var avoidOptions: AvoidOptions?