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.

Lifecycle

  • Initializes an EV charging availability options with specified parameters.

    Declaration

    Swift

    public init(
        availabilityID: EVChargingAvailabilityID,
        connectors: [ConnectorType] = [],
        minPower: Measurement<UnitPower>? = nil,
        maxPower: Measurement<UnitPower>? = nil
    )

    Parameters

    availabilityID

    The identifier of the EV charging availability data source. You can get this identifier from the search result. The identifier is in the SearchResultID of the SearchResult, labeled parkingAvailabilityDataSourceId.

    connectors

    A 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.

    minPower

    The minimal power that a charging station can provide.

    maxPower

    The maximal power that a charging station can provide.

Public

  • ID of the charging availability.

    Declaration

    Swift

    public let availabilityID: EVChargingAvailabilityID
  • 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>?