MapboxEVSearchClientApi

class MapboxEVSearchClientApi(platform: MapboxEvSearch, locationCache: LocationCache<EVStation> = LocationCache())

This is the higher level client API class for interacting with the Mapbox EV search platform.

Parameters

platform

instance of MapboxEvSearch

Constructors

Link copied to clipboard
constructor(platform: MapboxEvSearch, locationCache: LocationCache<EVStation> = LocationCache())

Functions

Link copied to clipboard
suspend fun clearSearchCacheForQuadrants(quadKeys: Set<String>)
Link copied to clipboard
suspend fun getEVSEbyId(locationId: String, evseId: String): Either<MapboxEVPlatformError, EVSE>
Link copied to clipboard
Link copied to clipboard
suspend fun getLocationConnectorById(locationId: String, evseId: String, connectorId: String): Either<MapboxEVPlatformError, EVSEConnector>
Link copied to clipboard
suspend fun quickGetEVStationById(evStationId: String): EVStation?

Searches the cache for a station with the specified ID

Link copied to clipboard

Performs a search for EV stations.

Link copied to clipboard

Performs a search for EV stations.

Link copied to clipboard
suspend fun searchChargersInBounds(northEastPoint: Point, southWestPoint: Point, options: SearchOptions): Either<MapboxEVPlatformError, List<MapboxEVSearchResult>>