VehicleProfileRestriction
public struct VehicleProfileRestriction : Hashable
Physical and cargo profile of a vehicle that triggers a regulation.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Vehicle type to which this restriction applies.
Declaration
Swift
public var requestedVehicleType: VehicleTypeCondition? -
Weight limits in kilograms.
Declaration
Swift
public var requiredWeightInKilograms: IntegerRange -
Gross weight limits in kilograms.
Declaration
Swift
public var requiredGrossWeightInKilograms: IntegerRange -
Trailer count limits.
Declaration
Swift
public var requiredAmountOfTrailers: IntegerRange -
Hazardous material condition associated with this profile.
Declaration
Swift
public var hazardousMaterial: HazardousMaterialType -
init(requestedVehicleType:requiredWeightInKilograms: requiredGrossWeightInKilograms: requiredAmountOfTrailers: hazardousMaterial: ) Creates a new instance with specified parameters.
Declaration
Swift
public init(requestedVehicleType: VehicleTypeCondition? = nil, requiredWeightInKilograms: IntegerRange, requiredGrossWeightInKilograms: IntegerRange, requiredAmountOfTrailers: IntegerRange, hazardousMaterial: HazardousMaterialType)