Skip to main content

Busy charging station

Experimental API
The Driver Notifications API is in a preview state and has a high chance of being changed in the future.

The EvBusyChargingStationNotificationProvider provides notifications when a busy EV charging station is detected on the primary route and suggests an alternative route if available.

Handle notifications flow

The provider continues to send notifications even if the user selects a worse route. Now, filtering of this state should be handled by the application consuming this API.

1. Setup the DriverNotificationsManager

GUIDE
Get started with Driver Notifications

Learn how to setup Driver Notifications.

2. Attach the EvBusyChargingStationNotificationProvider

val evBusyChargingStationNotificationProvider = EvBusyChargingStationNotificationProvider()
driverNotificationManager.attachDriverNotificationProvider(evBusyChargingStationNotificationProvider)

3. Receive busy station notification

The EvBusyChargingStationNotification is a notification object generated by the navigation SDK when an electric vehicle (EV) charging station along the current route is detected as busy (e.g., occupied or out-of-service). This notification helps drivers avoid delays by providing an alternative route that bypasses the busy charging station, allowing them to continue their journey with minimal disruption.

Here is a table describing the options for EvBusyChargingStationNotification:

Data fieldDescription
busyChargingStationIdThe unique identifier of the busy EV charging station detected along the current route.
alternativeRouteThe alternative NavigationRoute suggested to avoid the busy charging station.
busyChargingStationReasonThe value of the DirectionsCriteria.NotificationsEvStationUnavailableReasonCriteria indicating the reason why the charging station is unavailable, null if the reason is not specified.

4. Analyze busyChargingStationReason

Analyze EvBusyChargingStationNotification.busyChargingStationReason to provide an enhanced user experience.

TypeDescription
"outOfOrder"The charging station is not working properly.
"occupied"The charging station is being used by another vehicle.
Was this page helpful?