RestrictedVehicleCategory
public enum RestrictedVehicleCategory : UInt32, CaseIterable, Codable
The vehicle categories that can be restricted.
Note, a vehicle can belong to several categories (e.g. a passenger motor car
belongs to TrafficIncident.RestrictedVehicleCategory.car, TrafficIncident.RestrictedVehicleCategory.motorVehicle, and TrafficIncident.RestrictedVehicleCategory.all).
A vehicle is restricted if it belongs to the category presented in the map TrafficIncident.vehicleRestrictions
and at least one of the vehicle properties is under the matching TrafficIncident.VehicleRestriction.
-
Bus.
Declaration
Swift
case bus -
Car.
Declaration
Swift
case car -
Heavy goods vehicle (or large goods vehicle). In the European Union heavy goods vehicle is any truck with a gross combination mass (GCM) of over 3,500 kg.
Declaration
Swift
case heavyGoodsVehicle -
Truck.
Declaration
Swift
case truck -
Motorcycle.
Declaration
Swift
case motorcycle -
Motor vehicle. Definition: it is a self-propelled vehicle, that does not operate on rails and is used for the transportation of people or cargo.
Declaration
Swift
case motorVehicle -
Taxi.
Declaration
Swift
case taxi -
Train.
Declaration
Swift
case train -
Transporting an abnormal size load. See rules of the exact country that describe the exact parameters.
Declaration
Swift
case transportingAbnormalSizeLoad -
Transporting hazardous goods.
Declaration
Swift
case transportingHazardousGoods -
Vehicle with trailer.
Declaration
Swift
case vehicleWithTrailer -
Other vehicles.
Declaration
Swift
case other -
All the vehicles are applicable for this category.
Declaration
Swift
case all