mapClickEvStationSearch

suspend fun mapClickEvStationSearch(target: Point, mapboxMap: MapboxMap, searchCache: Boolean = true): Either<EvStationNotFoundError, EVStation>

Looks for an EV station on the map at the target point. If found the EV station is returned or an error.

If the @param searchCache is true the cache will be searched first and if a result is found it will be returned else a search call is made to the EV backend service to search for the EVStation by ID.

Parameters

target

the target search point from the map

mapboxMap

an instance of MapboxMap

searchCache

indicates if the cache should be searched for the result. If false a call will be made to the EV backend service for the EV station. Default is true.