Skip to content

Commit 0933a62

Browse files
yuryybkgithub-actions[bot]
authored andcommitted
NAVAND-4058 EV busy stations trip recalculation (#8816)
* NAVAND-4915 Implement EV busy station notification GitOrigin-RevId: ac81f3b3e8a8a929c9714567307aac46998ce443
1 parent f9ffe08 commit 0933a62

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

base/src/main/java/com/mapbox/navigation/base/internal/route/NavigationRouteEx.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ fun NavigationRoute.internalRefreshRoute(
6363
responseTimeElapsedSeconds,
6464
routeRefresh.unrecognizedJsonProperties
6565
?.get(KEY_REFRESH_TTL)?.asInt,
66+
IncidentsRefresher(),
67+
ClosuresRefresher(),
6668
)
6769
}
6870

base/src/main/java/com/mapbox/navigation/base/internal/route/RouteLegNotificationMergeEx.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal fun RouteLeg.Builder.updateNotifications(
1212
isElectric: Boolean,
1313
): RouteLeg.Builder {
1414
// Currently backend supports only EV Notifications refresh
15-
// https://github.com/mapbox/api-valhalla/blob/maxx-zp-adas-tiles/src/handlers/refresh/handleRefresh.ts/#L328-L338
15+
// https://github.com/mapbox/api-valhalla/blob/913aee076e4da6ee713d0b2eef56141cad1723b7/src/handlers/refresh/handleRefresh.ts#L328-L338
1616
if (!isElectric) {
1717
return this
1818
}

libtesting-navigation-base/src/main/java/com/mapbox/navigation/testing/factories/NavigationRouteFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fun mapToNativeWaypoints(
146146
directionsWaypoint.name(),
147147
directionsWaypoint.location(),
148148
directionsWaypoint.distance(),
149-
null,
149+
directionsWaypoint.getUnrecognizedProperty("metadata")?.toString(),
150150
routeOptions?.waypointTargetsList()?.get(index),
151151
when {
152152
directionsWaypoint.getUnrecognizedProperty("metadata")

0 commit comments

Comments
 (0)