Details
public struct Details : Hashable
Optional restriction details, contains additional information depending on the specific violation, zero or more member might be set.
For example, if the vehicle violates the maximum allowed height during the trip, then the member max_height_in_centimeters will
be set with the maximum allowed height value.
-
Max permitted weight per axle during the trip, in kilograms. This property will be set if the
TruckSpecifications.weightPerAxleInKilogramsexceeds this value.Declaration
Swift
public var maxWeightPerAxleInKilograms: Int32? -
Max permitted weight per axle group during the trip, in kilograms. This property will be set if the
TruckSpecifications.weightPerAxleGroupexceeds this value.Declaration
Swift
public var maxWeightPerAxleGroupInKilograms: MaxAxleGroupWeight? -
Max permitted height during the trip, in centimeters. This property will be set if the
TruckSpecifications.heightInCentimetersexceeds this value.Declaration
Swift
public var maxHeightInCentimeters: Int32? -
Max permitted width during the trip, in centimeters. This property will be set if the
TruckSpecifications.widthInCentimetersexceeds this value.Declaration
Swift
public var maxWidthInCentimeters: Int32? -
Max permitted length during the trip, in centimeters. This property will be set if the
TruckSpecifications.lengthInCentimetersexceeds this value.Declaration
Swift
public var maxLengthInCentimeters: Int32? -
The restriction to trucks with axles number within specified range during the trip. This property will be set if the
TruckSpecifications.axleCountis within this range.Declaration
Swift
public var forbiddenAxleCount: IntegerRange? -
Constrains the restriction to trucks with number of trailer within specified range during the trip. This property will be set if the
TruckSpecifications.trailerCountis within this range.Declaration
Swift
public var forbiddenTrailerCount: IntegerRange? -
There are two lists for our trip: Hazardous goods restrictions applied during the trip, and the list used for the route calculation provided using
TruckOptions.hazardousMaterials. This property is the intersection of the two lists.** Note **
RoadSignWarningevents andRouteViolationsare only given for violations that are . indicated on a road sign. Additional legal restrictions might apply when transporting hazardous materials.Declaration
Swift
public var forbiddenHazardousGoods: [HazardousMaterial] -
Tunnel category to restrict transport of specific goods during the trip. This property will be set if the
TruckOptions.linkTunnelCategoryexceeds this value.Declaration
Swift
public var maxTunnelCategory: TunnelCategory? -
Contains violated restrictions for truck road types.
Declaration
Swift
public var forbiddenTruckRoadTypes: [TruckRoadType] -
Contains the restricted routing zone reference This property will be set if the
AvoidanceOptions.zoneCategoriesis not emptyDeclaration
Swift
public var routingZoneReference: String? -
Max permitted payload capacity during the trip, in kilograms. This property will be set if the
TruckSpecifications.payloadCapacityInKilogramsexceeds this value.Declaration
Swift
public var maxPayloadCapacityInKilograms: Int32? -
Time intervals during which restrictions are enforced.
Declaration
Swift
public var timeRule: TimeRule? -
Max permitted weight during the trip, in kilograms, along with the specific type of maximum permitted weight restriction. This property will be set if the
TruckSpecifications.grossWeightInKilogramsparameter used for route calculation exceeds this value.Declaration
Swift
public var maxWeight: VehicleRestrictionMaxWeight? -
Contains the maximum permitted number of tires. This property will be set if the
VehicleSpecification.tiresCountexceeds the specified value.Declaration
Swift
public var maxNumberOfTires: Int32? -
init(maxWeightPerAxleInKilograms:maxWeightPerAxleGroupInKilograms: maxHeightInCentimeters: maxWidthInCentimeters: maxLengthInCentimeters: forbiddenAxleCount: forbiddenTrailerCount: forbiddenHazardousGoods: maxTunnelCategory: forbiddenTruckType: forbiddenTruckRoadTypes: routingZoneReference: maxPayloadCapacityInKilograms: timeRule: maxWeight: maxNumberOfTires: ) Creates a new instance.
Parameters
- maxWeightPerAxleInKilograms: Max permitted weight per axle during the trip, in kilograms.
This property will be set if the
TruckSpecifications.weightPerAxleInKilogramsexceeds this value. - maxWeightPerAxleGroupInKilograms: Max permitted weight per axle group during the trip, in kilograms.
This property will be set if the
TruckSpecifications.weightPerAxleGroupexceeds this value. - maxHeightInCentimeters: Max permitted height during the trip, in centimeters.
This property will be set if the
TruckSpecifications.heightInCentimetersexceeds this value. - maxWidthInCentimeters: Max permitted width during the trip, in centimeters.
This property will be set if the
TruckSpecifications.widthInCentimetersexceeds this value. - maxLengthInCentimeters: Max permitted length during the trip, in centimeters.
This property will be set if the
TruckSpecifications.lengthInCentimetersexceeds this value. - forbiddenAxleCount: The restriction to trucks with axles number within specified range during the trip.
This property will be set if the
TruckSpecifications.axleCountis within this range. - forbiddenTrailerCount: Constrains the restriction to trucks with number of trailer within specified range during the trip.
This property will be set if the
TruckSpecifications.trailerCountis within this range. - forbiddenHazardousGoods: There are two lists for our trip: Hazardous goods restrictions applied during the trip, and the list used
for the route calculation provided using
TruckOptions.hazardousMaterials. This property is the intersection of the two lists.
** Note **
RoadSignWarningevents andRouteViolationsare only given for violations that are . indicated on a road sign. Additional legal restrictions might apply when transporting hazardous materials.- maxTunnelCategory: Tunnel category to restrict transport of specific goods during the trip.
This property will be set if the
TruckOptions.linkTunnelCategoryexceeds this value. - forbiddenTruckType: This property will be set if a restriction applies to the value of
TruckTypeparameter used for route calculation. - forbiddenTruckRoadTypes: Contains violated restrictions for truck road types.
- routingZoneReference: Contains the restricted routing zone reference
This property will be set if the
AvoidanceOptions.zoneCategoriesis not empty - maxPayloadCapacityInKilograms: Max permitted payload capacity during the trip, in kilograms.
This property will be set if the
TruckSpecifications.payloadCapacityInKilogramsexceeds this value. - timeRule: Time intervals during which restrictions are enforced.
- maxWeight: Max permitted weight during the trip, in kilograms, along with the specific type of maximum permitted weight restriction.
This property will be set if the
TruckSpecifications.grossWeightInKilogramsparameter used for route calculation exceeds this value. - maxNumberOfTires: Contains the maximum permitted number of tires.
This property will be set if the
VehicleSpecification.tiresCountexceeds the specified value.
- maxWeightPerAxleInKilograms: Max permitted weight per axle during the trip, in kilograms.
This property will be set if the
Declaration
Swift
public init(maxWeightPerAxleInKilograms: Int32? = nil, maxWeightPerAxleGroupInKilograms: MaxAxleGroupWeight? = nil, maxHeightInCentimeters: Int32? = nil, maxWidthInCentimeters: Int32? = nil, maxLengthInCentimeters: Int32? = nil, forbiddenAxleCount: IntegerRange? = nil, forbiddenTrailerCount: IntegerRange? = nil, forbiddenHazardousGoods: [HazardousMaterial] = [], maxTunnelCategory: TunnelCategory? = nil, forbiddenTruckType: TruckType? = nil, forbiddenTruckRoadTypes: [TruckRoadType] = [], routingZoneReference: String? = nil, maxPayloadCapacityInKilograms: Int32? = nil, timeRule: TimeRule? = nil, maxWeight: VehicleRestrictionMaxWeight? = nil, maxNumberOfTires: Int32? = nil)