mapbox / mapbox/mapbox-navigation-android

Deliver routes back in RoutesObserver only when they were processed successfully

Offen
#5,686 5 Kommentare 1 Reaktion 1 zugewiesene Person Auf GitHub ansehen

@dzinad arbeitet bereits daran.

Seit 17.6.2022.

improvement jira-sync-complete
Vorherrschende Sprache
Kotlin
Sterne
651
Forks
321
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.