CostingOptionsPenalties
Objective-C
struct CostingOptionsPenalties {}
Swift
struct CostingOptionsPenalties
General penalties
-
A penalty applied when transitioning between roads that do not have consistent naming–in other words, no road names in common. This penalty can be used to create simpler routes that tend to have fewer maneuvers or narrative guidance instructions. The default maneuver penalty is five seconds.
Declaration
Objective-C
float maneuverPenaltySwift
var maneuverPenalty: Float -
A cost applied when a gate with undefined or private access is encountered. This cost is added to the estimated time / elapsed time. The default gate cost is 30 seconds.
Declaration
Objective-C
float gateCostSwift
var gateCost: Float -
A penalty applied when a gate with no access information is on the road. The default gate penalty is 300 seconds.
Declaration
Objective-C
float gatePenaltySwift
var gatePenalty: Float -
A cost applied when encountering an international border. This cost is added to the estimated and elapsed times. The default cost is 600 seconds.
Declaration
Objective-C
float countryCrossingCostSwift
var countryCrossingCost: Float -
A penalty applied for a country crossing. This penalty can be used to create paths that avoid spanning country boundaries. The default penalty is 0.
Declaration
Objective-C
float countryCrossingPenaltySwift
var countryCrossingPenalty: Float -
A penalty applied for transition to generic service road. The default penalty is 0 for trucks and 15 for cars, buses, motor scooters and motorcycles.
Declaration
Objective-C
float servicePenaltySwift
var servicePenalty: Float
Install in Dash
CostingOptionsPenalties Structure Reference