EVSearchOptions
public struct EVSearchOptions
Defines the parameters of an Electric Vehicle (EV) search.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates an
EVSearchOptionsto perform EV search.Important
Some EV stations don’t support status and access type filters. Setting those filters excludes those stations from the results.Important
If one of EV stations in a charging park satisfies the search filter, all of the EV stations will be returned.Important
If dynamic datastatusis not available to an implementation, the filter will be ignored.Declaration
Swift
public init( geoBias: CLLocationCoordinate2D, radius: Measurement<UnitLength> = .tt.meters(5000), limit: Int = 10, locale: Locale = .current, minPower: Measurement<UnitPower>? = nil, maxPower: Measurement<UnitPower>? = nil, connectors: Set<ConnectorType> = [], status: ChargingPoint.Status? = nil, accessTypes: Set<ChargingPark.AccessType> = [] )Parameters
geoBiasThe coordinates where results should be biased.
radiusThe maximum distance from the specified position for which the EV Search delivers results. Defaults to 5km.
limitThe maximum number of search results that will be returned. Defaults to 10.
localeThe language in which search results should be returned.
minPowerThe minimal power that a charging station can provide.
maxPowerThe maximal power that a charging station can provide.
connectorsA list of connector types that a charging station supports.
statusEV stations with this specified status. If nil, no status filter is applied.
accessTypesEV stations with the specified access types.
-
The position where results should be biased.
Declaration
Swift
public let geoBias: CLLocationCoordinate2D -
The maximum number of search results that will be returned. Defaults to 10.
Declaration
Swift
public let limit: Int -
The maximum distance from the specified position for which the EV Search delivers results.
Declaration
Swift
public let radius: Measurement<UnitLength> -
The language in which search results should be returned.
Declaration
Swift
public let locale: Locale -
The minimal power that a charging station can provide.
Declaration
Swift
public let minPower: Measurement<UnitPower>? -
The maximal power that a charging station can provide.
Declaration
Swift
public let maxPower: Measurement<UnitPower>? -
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.
Declaration
Swift
public let connectors: Set<ConnectorType> -
EV stations with this specified status.
nilmeans no status filter is applied.Declaration
Swift
public let status: ChargingPoint.Status? -
EV stations with the specified access types.
Declaration
Swift
public let accessTypes: Set<ChargingPark.AccessType>
TomTom SDK for iOS (0.53.1)
EVSearchOptions