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 maneuverPenalty

    Swift

    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 gateCost

    Swift

    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 gatePenalty

    Swift

    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 countryCrossingCost

    Swift

    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 countryCrossingPenalty

    Swift

    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 servicePenalty

    Swift

    var servicePenalty: Float