CostModel
public struct CostModel
Criteria that specify what paths to prefer during routing.
-
Creates a
CostModelinstance.Declaration
Swift
public init ( routeType: RouteType = .fast, considerTraffic: ConsiderTraffic? = .yes, avoidOptions: AvoidOptions? = nil )Parameters
routeTypeThe overall path preference.
considerTrafficSpecifies whether current traffic should be considered when planning the route.
avoidOptionsWhat 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?
TomTom SDK for iOS (0.51.1)
CostModel