TruckRestrictionWarning
public struct TruckRestrictionWarning : Hashable
Represents truck restrictions. For example, there can be a bridge ahead not high enough to pass a big truck or there can be a road ahead where the weight of the truck is beyond it’s permissible weight.
-
The distance from the current location to the restriction.
Declaration
Swift
public var distanceInMeters: Double -
Weight restriction. It is
nilwhen there is no known weight restriction ahead.Declaration
Swift
public var weightRestriction: WeightRestriction? -
Vehicle dimension restrictions. It is
nilwhen there is no known dimension restriction ahead.Declaration
Swift
public var dimensionRestriction: DimensionRestriction? -
Indicates if the specified truck restriction is ahead of the vehicle or has just passed by. If it is ahead, then
TruckRestrictionWarning.distanceInMetersis greater than 0.Declaration
Swift
public var distanceType: DistanceType -
The trailer count for which the current restriction applies. If the field is ‘null’ then the current restriction does not have a condition based on trailers count.
Declaration
Swift
public var trailerCount: IntegerRange? -
Time rule indicating the time periods for which the restriction applies. If the field is ‘null’ then the restriction is applicable at anytime.
Declaration
Swift
public var timeRule: TimeRule? -
Truck road type restriction.
Declaration
Swift
public var truckRoadType: TruckRoadType? -
Hazardous materials.
Declaration
Swift
public var hazardousMaterials: [HazardousMaterial] -
Tunnel category.
Declaration
Swift
public var tunnelCategory: TunnelCategory? -
The axle count for which the current restriction applies. If the field is ‘null’ then the current restriction does not have a condition based on axle count.
Declaration
Swift
public var axleCount: IntegerRange? -
init(distanceInMeters:weightRestriction: dimensionRestriction: distanceType: trailerCount: timeRule: truckRoadType: hazardousMaterials: tunnelCategory: axleCount: ) Creates a new instance.
Declaration
Swift
public init(distanceInMeters: Double, weightRestriction: WeightRestriction? = nil, dimensionRestriction: DimensionRestriction? = nil, distanceType: DistanceType, trailerCount: IntegerRange? = nil, timeRule: TimeRule? = nil, truckRoadType: TruckRoadType? = nil, hazardousMaterials: [HazardousMaterial] = [], tunnelCategory: TunnelCategory? = nil, axleCount: IntegerRange? = nil)