ChargingPoint
public struct ChargingPoint
extension ChargingPoint: Equatable
extension ChargingPoint: Hashable
A charging point corresponds to an EVSE (Electric Vehicle Supply Equipment). This can be thought of as the charging facility capable of accomodating one car.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a new
ChargingPointinstance with given parameters.Declaration
Swift
public init( evseID: String, capabilities: [Capability], restrictions: [ParkingRestriction], status: Status?, connectors: [ConnectorDetails], physicalReference: String? )Parameters
evseIDcharging point ID.
capabilitieslist of the chargers’ capabilities.
restrictionslist of parking restrictions.
statusdynamic availability status of charging point. If
nil, no status information is currently available.connectorsList of connectors with charging power attributes.
physicalReferencePhysical identification of the charging station printed on the station and visible to the driver. One of the parameters that can be used for booking or charging purposes to locate the physical station. No standard format available.
-
The status of a charging point.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum Status : CaseIterable -
Parking restrictions for a charging point.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum ParkingRestriction : CaseIterable -
Describes the technology and capabilities supported by an EVSE (electric vehicle supply equipment).
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum Capability : CaseIterable -
Charging point ID.
Declaration
Swift
public let evseID: String -
List of capabilities.
Declaration
Swift
public let capabilities: [Capability] -
List of parking restrictions.
Declaration
Swift
public let restrictions: [ParkingRestriction] -
Dynamic availability status of charging point. If
nil, no status information is currently available.Declaration
Swift
public let status: Status? -
Connector with charging power attributes.
Declaration
Swift
public let connectors: [ConnectorDetails] -
Physical identification of the charging station printed on the station and visible to the driver. One of the parameters that can be used for booking or charging purposes to locate the physical station. No standard format available.
Declaration
Swift
public let physicalReference: String?
-
Returns a Boolean value indicating whether two
ChargingPointinstances are equal. Availability status as a dynamic data is excluded from comparison.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public static func == (lhs: ChargingPoint, rhs: ChargingPoint) -> BoolParameters
lhsA
ChargingPointto compare.rhsAnother
ChargingPointto compare.Return Value
Returns a Boolean value indicating whether two
ChargingPointinstances are equal.
-
Hash function. Availability status as a dynamic data is excluded from hash function.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func hash(into hasher: inout Hasher)Parameters
hasherThe hasher to use when combining the components of this instance.
TomTom SDK for iOS (0.51.1)
ChargingPoint