EVChargingAvailabilityOptions
public struct EVChargingAvailabilityOptions
Options for requesting EV charging station availability.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes an EV charging availability options with specified parameters.
Declaration
Swift
public init( availabilityID: String, connectors: [ConnectorType] = [], minPower: Measurement<UnitPower>? = nil, maxPower: Measurement<UnitPower>? = nil )Parameters
availabilityIDThe identifier of the EV charging availability data source. You can get this identifier from the search result. The identifier is in the
SearchResultIDof theSearchResult, labeledparkingAvailabilityDataSourceId.connectorsA list of connector types that a charging station supports. See https://developer.tomtom.com/search-api/search-api-documentation/supported-connector-types for more details.
minPowerThe minimal power that a charging station can provide.
maxPowerThe maximal power that a charging station can provide.
-
ID of the charging availability
Declaration
Swift
public let availabilityID: String -
Connector type filter
Declaration
Swift
public var connectors: [ConnectorType] -
Minimum power filter
Declaration
Swift
public var minPower: Measurement<UnitPower>? -
Maximum power filter
Declaration
Swift
public var maxPower: Measurement<UnitPower>?
EVChargingAvailabilityOptions Structure Reference