mapbox / mapbox/mapbox-navigation-android

Want to retrieve NavigationStatus provided by native module

Open
#3,906 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

archived
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.