Busy charging station
The EvBusyChargingStationNotificationProvider provides notifications when a busy EV charging station is detected on the primary route and suggests an alternative route if available.
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
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 field | Description |
|---|---|
busyChargingStationId | The unique identifier of the busy EV charging station detected along the current route. |
alternativeRoute | The alternative NavigationRoute suggested to avoid the busy charging station. |
busyChargingStationReason | The 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.
| Type | Description |
|---|---|
"outOfOrder" | The charging station is not working properly. |
"occupied" | The charging station is being used by another vehicle. |