Skip to content

Commit 9e36c3b

Browse files
dzinadgithub-actions[bot]
authored andcommitted
DRIVE3D-2015: enable grace period to not fallback to SD for new routes
GitOrigin-RevId: b75ccf0670f33a505b432208272d4253390fd7d5
1 parent af42fd4 commit 9e36c3b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

libtesting-navigation-core-utils/src/main/java/com/mapbox/navigation/testing/utils/routes/RoutesProvider.kt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,26 @@ object RoutesProvider {
549549
coordinates,
550550
)
551551
}
552+
553+
fun helsinki_hd_sd_reroute(context: Context): MockRoute {
554+
val jsonResponse = readRawFileText(context, R.raw.helsinki_hd_sd_reroute_route_response)
555+
val coordinates = listOf(
556+
Point.fromLngLat(24.815981, 60.213612),
557+
Point.fromLngLat(24.8801009,60.2033859),
558+
)
559+
return MockRoute(
560+
jsonResponse,
561+
DirectionsResponse.fromJson(jsonResponse),
562+
listOf(
563+
MockDirectionsRequestHandler(
564+
profile = PROFILE_DRIVING_TRAFFIC,
565+
jsonResponse = jsonResponse,
566+
expectedCoordinates = coordinates,
567+
),
568+
),
569+
coordinates,
570+
)
571+
}
552572
}
553573

554574
suspend fun MapboxNavigation.requestMockRoutes(

0 commit comments

Comments
 (0)