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 ChargingPoint instance with given parameters.

    Declaration

    Swift

    public init(
        evseID: String,
        capabilities: [Capability],
        restrictions: [ParkingRestriction],
        status: Status?,
        connectors: [ConnectorDetails],
        physicalReference: String?
    )

    Parameters

    evseID

    charging point ID.

    capabilities

    list of the chargers’ capabilities.

    restrictions

    list of parking restrictions.

    status

    dynamic availability status of charging point. If nil, no status information is currently available.

    connectors

    List of connectors with charging power attributes.

    physicalReference

    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.

  • The status of a charging point.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum Status : CaseIterable
  • Parking restrictions for a charging point.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum ParkingRestriction : CaseIterable
  • Describes the technology and capabilities supported by an EVSE (electric vehicle supply equipment).

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    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 ChargingPoint instances 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) -> Bool

    Parameters

    lhs

    A ChargingPoint to compare.

    rhs

    Another ChargingPoint to compare.

    Return Value

    Returns a Boolean value indicating whether two ChargingPoint instances 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

    hasher

    The hasher to use when combining the components of this instance.