Setting An Initial Route on Mapbox NavigationView

Viewed 18

I want to start Mapbox NavigationWiew component with an already defined route which just takes a destination point for input (because origin point is already user location) in an android application. Everything is achievable with MapView, but it is hard to achieve this with NavigationView.(I preferred not to provide code samples here, because then it will look like real mess.) NavigationView looks like a closed box. I found only functions below which maybe helpful, but don't know how to use them clearly.

binding.navigationView.api.setRoutes()
binding.navigationView.api.setDestination()
binding.navigationView.enableTripSession()

Any roadmap will be helpful.Thank you.

0 Answers
Related