mapbox / mapbox/mapbox-navigation-android

Deliver routes back in RoutesObserver only when they were processed successfully

Open
#5,686 5 comments 1 reaction 1 assignee View on GitHub

@dzinad is already working on this.

Since Jun 17, 2022.

improvement jira-sync-complete
Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

Refs https://github.com/mapbox/mapbox-navigation-android/pull/5653 where we introduced a dependency for `MapboxNavigation#setNavigationRoutes` to only deliver the routes back in `RoutesObserver` after they were processed by the native navigator.

This opens up an opportunity to only return routes that were _successfully_ processed by the native navigator. A route might be valid for display on the map, valid for camera operations, etc. while for any reason not being valid for navigation from Nav Native perspective. Filtering invalid routes out would prevent user confusion and made it easier for developers to catch a problem if a route they set is not delivered back.

We could extend the `RoutesUpdatedResult` with a collection of routes that were not processed successfully and the reasons for that.

cc @Guardiola31337 @RingerJK @VysotskiVadim

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.