EVChargingStationService

@available(*, message: "TT_API_PUBLIC_PREVIEW('byTheEndOf=2020.12', 'This is under Public Preview and subject to change until the end date. More information is available at: https://developer.tomtom.com/public-preview'﹚")
@objc
public class EVChargingStationService : NSObject

Public Preview

This is under Public Preview and subject to change by the end of 2020.12. More information is available at: https://developer.tomtom.com/public-preview

This is entry point for EV Charging Station.

Properties

  • Initializer with a key for the Search API Key Service.

    Declaration

    Swift

    @objc
    public init(apiKey: String)

    Parameters

    apiKey

    Search API Key.

  • Returns given charging station information.

    Declaration

    Swift

    @objc
    public func chargingStationSearch(specification: ChargingStationSpecificationProtocol, completion: @escaping (_ station: ChargingStation?, _ error: NSError?) -> Void)

    Parameters

    specification

    Protocol containing the id of the electric charging station.

    completion

    Information about Charging Station.

  • Returns an array of charging station details in a given bouding box defined by topLeft and bottomRight.

    Declaration

    Swift

    @objc
    public func search(topLeft: CLLocationCoordinate2D, bottomRight: CLLocationCoordinate2D, completion: @escaping (_ stations: [ChargingStationDetails]?, _ error: NSError?) -> Void)

    Parameters

    topLeft

    Top-left of the bounding box.

    bottomRight

    Bottom-right of the bounding box.

  • Returns an array of charging station details in a given Shape. Please check CircleShape or PolygonShape.

    Declaration

    Swift

    @objc
    public func search(shape: [Shape], completion: @escaping (_ stations: [ChargingStationDetails]?, _ error: NSError?) -> Void)

    Parameters

    shape

    The Shape class protocol.

    completion

    The result block called when data is fetched, returns an array of ChargingStationDetails or an error if something went wrong.

  • Returns an array of charging stations details around a given route.

    Declaration

    Swift

    @objc
    public func search(route: [CLLocation], completion: @escaping (_ stations: [ChargingStationDetails]?, _ error: NSError?) -> Void)

    Parameters

    shape

    The Shape class protocol.

    completion

    The result block called when data is fetched, returns an array of ChargingStationDetails or an error if something went wrong.