MapboxEVSearchClientApi
class MapboxEVSearchClientApi(platform: MapboxEvSearch, locationCache: LocationCache<CachedEVStation> = 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<CachedEVStation> = LocationCache())
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getLocationConnectorById(locationId: String, evseId: String, connectorId: String): Either<MapboxEVPlatformError, EVSEConnector>
Link copied to clipboard
Searches the cache for a station with the specified ID
Link copied to clipboard
suspend fun searchChargers(points: List<Point>, options: SearchOptions): Either<MapboxEVPlatformError, List<MapboxEVSearchResult>>
suspend fun searchChargers(latitude: Double, longitude: Double, options: SearchOptions): Either<MapboxEVPlatformError, List<MapboxEVSearchResult>>
Performs a search for EV stations.
Link copied to clipboard
suspend fun searchChargersByQuadKeys(quadKeys: List<String>, options: SearchOptions): Either<MapboxEVPlatformError, List<MapboxEVSearchResult>>
Performs a search for EV stations.
Link copied to clipboard
suspend fun searchChargersInBounds(northEastPoint: Point, southWestPoint: Point, options: SearchOptions): Either<MapboxEVPlatformError, List<MapboxEVSearchResult>>