0

i have a small problem with waypoints. I have an array of coordinates of 25 points on which I build a route. I need to make it so that only the start point and end point are visible on the map, and all intermediate points on the map are not visible. During route generation, I specify silent waypoints using the waypointIndicesList(listOf(0, 24) parameter. Navigation considers the specified coordinate indices as silent points, but they are still visible on the route. Although when you specify silent points in the Map Box Navigation IOS, they become invisible on the map! How can they be hidden in the Android version?my route

this is my fun reguest Routes

> private fun requestRoutes(listOfPoint: ArrayList<Point>) {
    MapboxNavigationApp.current()!!.requestRoutes(
        RouteOptions
            .builder()
            .applyLanguageAndVoiceUnitOptions(view!!.context)
            .applyDefaultNavigationOptions()
            .alternatives(true)
            .coordinatesList(listOfPoint)
            .waypointIndicesList(listOf(0, 24))
            .build(),
        object : NavigationRouterCallback {
            override fun onCanceled(routeOptions: RouteOptions, routerOrigin: RouterOrigin) {
                // no Implement
            }
            override fun onFailure(reasons: List<RouterFailure>, routeOptions: RouteOptions) {
                // no Implement
            }
            override fun onRoutesReady(
                routes: List<NavigationRoute>,
                routerOrigin: RouterOrigin
            ) {
                navigationView.api.startRoutePreview(routes)
                navigationView.api.routeReplayEnabled(true)
            }
        }
    )
}

please help me solve the problem I am using Drop-In UI Navigation SDK for Android version 2.8.0

0 Answers0