EVChargingTruckRestriction
public struct EVChargingTruckRestriction : Hashable
Represents access restrictions for trucks and light commercial vehicles. 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.
-
Access categories for trucks and light commercial vehicles that the EV charging location is designed to serve.
While the classifications used as basis for the categories are solely based on vehicle mass, in EV charging context they can be interpreted to give an idea of the dimensional class too, as well as possible other restrictions set by the operator. If there are true dimensional or weight limits at the EV charging location, they are specified separately in vehicleLimitations.
The classification is available only to a subset of EV charging locations, depending on the information available from the operators. Hence, at least vehicles belonging to the
TruckClass.lightClasscategory can be charged also in many EV charging locations not having explicit signaling for theTruckClass.lightClasscategory.Furthermore, although the classification is based on mass/weight ranges in growing order, an upper class does not automatically mean that also all lower class vehicles are welcome to charge. For example, a location marked only with category
TruckClass.heavyClassis reserved for long-haul trucks only.Declaration
Swift
public var truckAccess: [TruckClass] -
Indication if vehicles carrying hazardous / dangerous goods (ADR) can enter the EV Charging Location.
- True means the access is restricted. The client should assume the restriction covers all ADR classes.
- False means there are no restrictions.
- Absence means the information is not known.
Declaration
Swift
public var hazardousGoodsRestricted: Bool? -
Creates a new instance.
Parameters
- truckAccess: Access categories for trucks and light commercial vehicles that the EV charging location is designed to serve.
While the classifications used as basis for the categories are solely based on vehicle mass, in EV charging context they can be interpreted to give an idea of the dimensional class too, as well as possible other restrictions set by the operator. If there are true dimensional or weight limits at the EV charging location, they are specified separately in vehicleLimitations.
The classification is available only to a subset of EV charging locations, depending on the information available from the operators. Hence, at least vehicles belonging to the
TruckClass.lightClasscategory can be charged also in many EV charging locations not having explicit signaling for theTruckClass.lightClasscategory.Furthermore, although the classification is based on mass/weight ranges in growing order, an upper class does not automatically mean that also all lower class vehicles are welcome to charge. For example, a location marked only with category
TruckClass.heavyClassis reserved for long-haul trucks only.- hazardousGoodsRestricted: Indication if vehicles carrying hazardous / dangerous goods (ADR) can enter the EV Charging Location.
- True means the access is restricted. The client should assume the restriction covers all ADR classes.
- False means there are no restrictions.
- Absence means the information is not known.
Declaration
Swift
public init(truckAccess: [TruckClass] = [], hazardousGoodsRestricted: Bool? = nil)