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.EV stations with the specified access types.
Declaration
Swift
public let accessTypes: Set<ChargingPark.AccessType>
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>
The position where results should be biased.
Declaration
Swift
public let geoBias: CLLocationCoordinate2D
Creates an EVSearchOptions
to perform EV search.
Important
Some EV stations don’t support status and access type filter. 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.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
geoBias
|
The coordinates where results should be biased. |
radius
|
The maximum distance from the specified position for which the EV Search delivers results. Defaults to 5km. |
limit
|
The maximum number of search results that will be returned. Defaults to 10. |
locale
|
The language in which search results should be returned. |
minPower
|
The minimal power that a charging station can provide. |
maxPower
|
The maximal power that a charging station can provide. |
connectors
|
A list of connector types that a charging station supports. |
status
|
EV stations with this specified status. If nil, no status filter is applied. |
accessTypes
|
EV stations with the specified access types. |
The maximum number of search results that will be returned. Defaults to 10.
Declaration
Swift
public let limit: Int
The language in which search results should be returned.
Declaration
Swift
public let locale: Locale
The maximal power that a charging station can provide.
Declaration
Swift
public let maxPower: Measurement<UnitPower>?
The minimal power that a charging station can provide.
Declaration
Swift
public let minPower: Measurement<UnitPower>?
The maximum distance from the specified position for which the EV Search delivers results.
Declaration
Swift
public let radius: Measurement<UnitLength>
EV stations with this specified status. nil
means no status filter is applied.
Declaration
Swift
public let status: ChargingPoint.Status?