Skip to content

Commit c06cab4

Browse files
yuryybkgithub-actions[bot]
authored andcommitted
NAVAND-5618 Implement EV busy charging stations notificaiton (#9146)
* NAVAND-5618 Move EV busy charging station notification logic to Core EvBusyChargingStationNotificationProvider GitOrigin-RevId: 615791f0133ae187338f68dba8141c2124123b43
1 parent 722dcc8 commit c06cab4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- - Add `EvBusyChargingStationNotificationProvider` to notify when the EV is charging station is busy and propose alternative route

libtesting-thirdparty/src/main/java/com/mapbox/navigation/testing/factories/DirectionsResponseFactories.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ fun createStepIntersection(
285285
.build()
286286
}
287287

288-
fun createEvWaypoint(isServer: Boolean = true) =
288+
fun createEvWaypoint(stationId: String = "testChargingStationId", isServer: Boolean = true) =
289289
createWaypoint(
290290
unrecognizedProperties = mapOf(
291291
"metadata" to JsonObject().apply {
@@ -294,6 +294,7 @@ fun createEvWaypoint(isServer: Boolean = true) =
294294
JsonPrimitive(
295295
if (isServer) "charging-station" else "user-provided-charging-station" )
296296
)
297+
add("station_id", JsonPrimitive(stationId))
297298
},
298299
),
299300
)

0 commit comments

Comments
 (0)