mapbox / mapbox/mapbox-navigation-android
Want to retrieve NavigationStatus provided by native module
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Description
Android API:
Mapbox Navigation SDK version:
v1.3.0 and later
Feature request
In some case NavigatoionStatus is useful in user code.
Latest code has a method to get NavigatoionStatus from native module here. However, the method is private and user code cannot retrieve it.
From user point of view, if onRouteProgressChanged contains NavigatoionStatus, it's easy to handle it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/session/MapboxTripSession.kt at the linked private method that retrieves NavigationStatus, then inspect the onRouteProgressChanged API. Done means user code can retrieve NavigationStatus through the proposed route-progress callback behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100