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
VehicleSpecification.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
VehicleSpecification.weightPerAxleGroupexceeds this value.Declaration
Swift
public var maxWeightPerAxleGroupInKilograms: MaxAxleGroupWeight? -
Max permitted height during the trip, in centimeters. This property will be set if the
VehicleSpecification.heightInCentimetersexceeds this value.Declaration
Swift
public var maxHeightInCentimeters: Int32? -
Max permitted width during the trip, in centimeters. This property will be set if the
VehicleSpecification.widthInCentimetersexceeds this value.Declaration
Swift
public var maxWidthInCentimeters: Int32? -
Max permitted length during the trip, in centimeters. This property will be set if the
VehicleSpecification.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
VehicleSpecification.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
VehicleSpecification.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
VehicleSpecification.hazardousMaterialsfromTransportSpecification.vehicleSpecificationfromRoutingOptions.transportSpecification. 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
VehicleSpecification.tunnelCategoryfromTransportSpecification.vehicleSpecificationfromRoutingOptions.transportSpecificationexceeds this value.Declaration
Swift
public var maxTunnelCategory: TunnelCategory? -
This property will be set if a restriction applies to the value of
TruckCategoryparameter used for route calculation.Declaration
Swift
public var forbiddenTruckCategory: TruckCategory? -
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
VehicleSpecification.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
VehicleSpecification.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? -
Contains the maximum permitted distance from kingpin to the rear axle in centimeters. This property will be set if the
VehicleSpecification.kingpinToRearAxleDistanceInCentimetersexceeds the specified value.Declaration
Swift
public var maxKingpinToRearAxleDistanceInCentimeters: Int32? -
init(maxWeightPerAxleInKilograms:maxWeightPerAxleGroupInKilograms: maxHeightInCentimeters: maxWidthInCentimeters: maxLengthInCentimeters: forbiddenAxleCount: forbiddenTrailerCount: forbiddenHazardousGoods: maxTunnelCategory: forbiddenTruckCategory: forbiddenTruckRoadTypes: routingZoneReference: maxPayloadCapacityInKilograms: timeRule: maxWeight: maxNumberOfTires: maxKingpinToRearAxleDistanceInCentimeters: ) Creates a new instance.
Parameters
- maxWeightPerAxleInKilograms: Max permitted weight per axle during the trip, in kilograms.
This property will be set if the
VehicleSpecification.weightPerAxleInKilogramsexceeds this value. - maxWeightPerAxleGroupInKilograms: Max permitted weight per axle group during the trip, in kilograms.
This property will be set if the
VehicleSpecification.weightPerAxleGroupexceeds this value. - maxHeightInCentimeters: Max permitted height during the trip, in centimeters.
This property will be set if the
VehicleSpecification.heightInCentimetersexceeds this value. - maxWidthInCentimeters: Max permitted width during the trip, in centimeters.
This property will be set if the
VehicleSpecification.widthInCentimetersexceeds this value. - maxLengthInCentimeters: Max permitted length during the trip, in centimeters.
This property will be set if the
VehicleSpecification.lengthInCentimetersexceeds this value. - forbiddenAxleCount: The restriction to trucks with axles number within specified range during the trip.
This property will be set if the
VehicleSpecification.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
VehicleSpecification.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
VehicleSpecification.hazardousMaterialsfromTransportSpecification.vehicleSpecificationfromRoutingOptions.transportSpecification. 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
VehicleSpecification.tunnelCategoryfromTransportSpecification.vehicleSpecificationfromRoutingOptions.transportSpecificationexceeds this value. - forbiddenTruckCategory: This property will be set if a restriction applies to the value of
TruckCategoryparameter 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
VehicleSpecification.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
VehicleSpecification.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. - maxKingpinToRearAxleDistanceInCentimeters: Contains the maximum permitted distance from kingpin to the rear axle in centimeters.
This property will be set if the
VehicleSpecification.kingpinToRearAxleDistanceInCentimetersexceeds 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, forbiddenTruckCategory: TruckCategory? = nil, forbiddenTruckRoadTypes: [TruckRoadType] = [], routingZoneReference: String? = nil, maxPayloadCapacityInKilograms: Int32? = nil, timeRule: TimeRule? = nil, maxWeight: VehicleRestrictionMaxWeight? = nil, maxNumberOfTires: Int32? = nil, maxKingpinToRearAxleDistanceInCentimeters: Int32? = nil) -
init(maxWeightPerAxleInKilograms:maxWeightPerAxleGroupInKilograms: maxHeightInCentimeters: maxWidthInCentimeters: maxLengthInCentimeters: forbiddenAxleCount: forbiddenTrailerCount: forbiddenHazardousGoods: maxTunnelCategory: forbiddenTruckType: forbiddenTruckCategory: forbiddenTruckRoadTypes: routingZoneReference: maxPayloadCapacityInKilograms: timeRule: maxWeight: maxNumberOfTires: maxKingpinToRearAxleDistanceInCentimeters: ) Creates a new instance.
Parameters
- maxWeightPerAxleInKilograms: Max permitted weight per axle during the trip, in kilograms.
This property will be set if the
VehicleSpecification.weightPerAxleInKilogramsexceeds this value. - maxWeightPerAxleGroupInKilograms: Max permitted weight per axle group during the trip, in kilograms.
This property will be set if the
VehicleSpecification.weightPerAxleGroupexceeds this value. - maxHeightInCentimeters: Max permitted height during the trip, in centimeters.
This property will be set if the
VehicleSpecification.heightInCentimetersexceeds this value. - maxWidthInCentimeters: Max permitted width during the trip, in centimeters.
This property will be set if the
VehicleSpecification.widthInCentimetersexceeds this value. - maxLengthInCentimeters: Max permitted length during the trip, in centimeters.
This property will be set if the
VehicleSpecification.lengthInCentimetersexceeds this value. - forbiddenAxleCount: The restriction to trucks with axles number within specified range during the trip.
This property will be set if the
VehicleSpecification.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
VehicleSpecification.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
VehicleSpecification.hazardousMaterialsfromTransportSpecification.vehicleSpecificationfromRoutingOptions.transportSpecification. 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
VehicleSpecification.tunnelCategoryfromTransportSpecification.vehicleSpecificationfromRoutingOptions.transportSpecificationexceeds this value. - forbiddenTruckType: This property will be set if a restriction applies to the value of
TruckTypeparameter used for route calculation. - forbiddenTruckCategory: This property will be set if a restriction applies to the value of
TruckCategoryparameter 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
VehicleSpecification.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
VehicleSpecification.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. - maxKingpinToRearAxleDistanceInCentimeters: Contains the maximum permitted distance from kingpin to the rear axle in centimeters.
This property will be set if the
VehicleSpecification.kingpinToRearAxleDistanceInCentimetersexceeds the specified value.
- maxWeightPerAxleInKilograms: Max permitted weight per axle during the trip, in kilograms.
This property will be set if the
Declaration
Swift
@available(*, deprecated) 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, forbiddenTruckCategory: TruckCategory? = nil, forbiddenTruckRoadTypes: [TruckRoadType] = [], routingZoneReference: String? = nil, maxPayloadCapacityInKilograms: Int32? = nil, timeRule: TimeRule? = nil, maxWeight: VehicleRestrictionMaxWeight? = nil, maxNumberOfTires: Int32? = nil, maxKingpinToRearAxleDistanceInCentimeters: Int32? = nil)