MapGptEVSearchContextProvider

class MapGptEVSearchContextProvider(contextOverrides: MapGptContextOverrides, evCore: EVCoreClient, observeIsElectricVehicle: ObserveIsElectricVehicle, unitOfMeasurementsUseCase: ObserveUserPreferredUnitOfMeasurementsUseCase) : UIComponent, EVGptSearchResultProvider

This class is used to provide nearby EV stations in the GPT context. It will monitor location updates and as the driver progresses a call will be made to the EV search service to get the closest stations and cache them for future use in the app.

Constructors

Link copied to clipboard
constructor(contextOverrides: MapGptContextOverrides, evCore: EVCoreClient, observeIsElectricVehicle: ObserveIsElectricVehicle, unitOfMeasurementsUseCase: ObserveUserPreferredUnitOfMeasurementsUseCase)

Properties

Link copied to clipboard
lateinit var coroutineScope: CoroutineScope
Link copied to clipboard

Functions

Link copied to clipboard
fun getContext(): MapGptEVContextDTO
Link copied to clipboard
Link copied to clipboard
open override fun onAttached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard
open override fun onDetached(mapboxNavigation: MapboxNavigation)