VehicleRestriction
public struct VehicleRestriction : Hashable
The vehicle restriction representing a vehicle category and relevant restriction rules.
-
The flag indicating if vehicles of the matching category are restricted anyway (not depending on any vehicle parameter).
Declaration
Swift
public var isRestrictedAlways: Bool -
The flag indicating if diesel fuel is restricted for vehicles of the matching category.
Declaration
Swift
public var isDieselFuelRestricted: Bool -
The flag indicating if petrol fuel is restricted for vehicles of the matching category.
Declaration
Swift
public var isPetrolFuelRestricted: Bool -
The flag indicating if LPG fuel is restricted for vehicles of the matching category.
Declaration
Swift
public var isLpgFuelRestricted: Bool -
The flag indicating if a driving with a caravan is restricted for vehicles of the matching category.
Declaration
Swift
public var isCaravanRestricted: Bool -
The flag indicating if a driving with a trailer is restricted for vehicles of the matching category.
Declaration
Swift
public var isTrailerRestricted: Bool -
The flag indicating if a driving without snow chains is restricted for vehicles of the matching category.
Declaration
Swift
public var isDrivingWithoutSnowChainsRestricted: Bool -
The flag indicating if a driving without winter tyres is restricted for vehicles of the matching category.
Declaration
Swift
public var isDrivingWithoutWinterTyresRestricted: Bool -
The flag indicating if a plate with even number is restricted for vehicles of the matching category.
Declaration
Swift
public var isEvenNumberPlateRestricted: Bool -
The flag indicating if a plate with odd number is restricted for vehicles of the matching category.
Declaration
Swift
public var isOddNumberPlateRestricted: Bool -
The flag indicating if a through traffic is restricted for vehicles of the matching category.
Declaration
Swift
public var isThroughTrafficRestricted: Bool -
The flag indicating if a residents traffic is restricted for vehicles of the matching category.
Declaration
Swift
public var isResidentsTrafficRestricted: Bool -
The flag indicating if a traffic destination in the incident area is restricted for vehicles of the matching category.
Declaration
Swift
public var isDestinationInIncidentAreaRestricted: Bool -
The flag indicating if euro3 and weaker emission standards are restricted for vehicles of the matching category.
Declaration
Swift
public var isEuro3EmissionStandardRestricted: Bool -
The flag indicating if euro4 and weaker emission standards are restricted for vehicles of the matching category.
Declaration
Swift
public var isEuro4EmissionStandardRestricted: Bool -
The flag indicating if euro5 and weaker emission standards are restricted for vehicles of the matching category.
Declaration
Swift
public var isEuro5EmissionStandardRestricted: Bool -
Vehicles of the matching category are restricted if the vehicle gross weight is more than the weight in kilograms. If the value is
nilthe upper gross weight bound is not specified.Declaration
Swift
public var restrictedIfGrossWeightMoreThanInKilograms: Int32? -
Vehicles of the matching category are restricted if the vehicle gross weight is less than the weight in kilograms. If the value is
nilthe lower gross weight bound is not specified.Declaration
Swift
public var restrictedIfGrossWeightLessThanInKilograms: Int32? -
Vehicles of the matching category are restricted if the vehicle weight per axle is more than the weight in kilograms. If the value is
nilthe upper weight per axle bound is not specified.Declaration
Swift
public var restrictedIfAxleWeightMoreThanInKilograms: Int32? -
Vehicles of the matching category are restricted if the vehicle weight per axle is less than the weight in kilograms. If the value is
nilthe lower weight per axle bound is not specified.Declaration
Swift
public var restrictedIfAxleWeightLessThanInKilograms: Int32? -
Vehicles of the matching category are restricted if the vehicle is longer than the length in centimeters. If the value is
nilthe upper length bound is not specified.Declaration
Swift
public var restrictedIfLongerThanInCentimeters: Int32? -
Vehicles of the matching category are restricted if the vehicle is shorter than the length in centimeters. If the value is
nilthe lower length bound is not specified.Declaration
Swift
public var restrictedIfShorterThanInCentimeters: Int32? -
Vehicles of the matching category are restricted if the vehicle is higher than the height in centimeters. If the value is
nilthe upper height bound is not specified.Declaration
Swift
public var restrictedIfHigherThanInCentimeters: Int32? -
Vehicles of the matching category are restricted if the vehicle is lower than the height in centimeters. If the value is
nilthe lower height bound is not specified.Declaration
Swift
public var restrictedIfLowerThanInCentimeters: Int32? -
Vehicles of the matching category are restricted if the vehicle is wider than the width in centimeters. If the value is
nilthe upper width bound is not specified.Declaration
Swift
public var restrictedIfWiderThanInCentimeters: Int32? -
Vehicles of the matching category are restricted if the vehicle is narrower than the width in centimeters. If the value is
nilthe lower width bound is not specified.Declaration
Swift
public var restrictedIfNarrowerThanInCentimeters: Int32? -
Vehicles of the matching category are restricted if the occupants number is more than the value. If the value is
nilthe upper occupants bound is not specified.Declaration
Swift
public var restrictedIfOccupantsMoreThan: Int32? -
Vehicles of the matching category are restricted if the occupants number is fewer than the value. If the value is
nilthe lower occupants bound is not specified.Declaration
Swift
public var restrictedIfOccupantsFewerThan: Int32? -
init(isRestrictedAlways:isDieselFuelRestricted: isPetrolFuelRestricted: isLpgFuelRestricted: isCaravanRestricted: isTrailerRestricted: isDrivingWithoutSnowChainsRestricted: isDrivingWithoutWinterTyresRestricted: isEvenNumberPlateRestricted: isOddNumberPlateRestricted: isThroughTrafficRestricted: isResidentsTrafficRestricted: isDestinationInIncidentAreaRestricted: isEuro3EmissionStandardRestricted: isEuro4EmissionStandardRestricted: isEuro5EmissionStandardRestricted: restrictedIfGrossWeightMoreThanInKilograms: restrictedIfGrossWeightLessThanInKilograms: restrictedIfAxleWeightMoreThanInKilograms: restrictedIfAxleWeightLessThanInKilograms: restrictedIfLongerThanInCentimeters: restrictedIfShorterThanInCentimeters: restrictedIfHigherThanInCentimeters: restrictedIfLowerThanInCentimeters: restrictedIfWiderThanInCentimeters: restrictedIfNarrowerThanInCentimeters: restrictedIfOccupantsMoreThan: restrictedIfOccupantsFewerThan: ) Creates a new instance.
Declaration
Swift
public init(isRestrictedAlways: Bool = false, isDieselFuelRestricted: Bool = false, isPetrolFuelRestricted: Bool = false, isLpgFuelRestricted: Bool = false, isCaravanRestricted: Bool = false, isTrailerRestricted: Bool = false, isDrivingWithoutSnowChainsRestricted: Bool = false, isDrivingWithoutWinterTyresRestricted: Bool = false, isEvenNumberPlateRestricted: Bool = false, isOddNumberPlateRestricted: Bool = false, isThroughTrafficRestricted: Bool = false, isResidentsTrafficRestricted: Bool = false, isDestinationInIncidentAreaRestricted: Bool = false, isEuro3EmissionStandardRestricted: Bool = false, isEuro4EmissionStandardRestricted: Bool = false, isEuro5EmissionStandardRestricted: Bool = false, restrictedIfGrossWeightMoreThanInKilograms: Int32? = nil, restrictedIfGrossWeightLessThanInKilograms: Int32? = nil, restrictedIfAxleWeightMoreThanInKilograms: Int32? = nil, restrictedIfAxleWeightLessThanInKilograms: Int32? = nil, restrictedIfLongerThanInCentimeters: Int32? = nil, restrictedIfShorterThanInCentimeters: Int32? = nil, restrictedIfHigherThanInCentimeters: Int32? = nil, restrictedIfLowerThanInCentimeters: Int32? = nil, restrictedIfWiderThanInCentimeters: Int32? = nil, restrictedIfNarrowerThanInCentimeters: Int32? = nil, restrictedIfOccupantsMoreThan: Int32? = nil, restrictedIfOccupantsFewerThan: Int32? = nil)