mapbox / mapbox/mapbox-navigation-android

Route traffic summary

Aperta
#4,559 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

feature jira-sync-complete needs discussion
Lingua principale
Kotlin
Stelle
651
Fork
321
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

This ticket tracks the discussion of adding a summary of traffic on the entire route, suitable for display to the user on the route overview screen.

This should summarize the traffic on the route currently (as opposed to comparing the current conditions to typical conditions of the same route).

Could be either

  • enum, one of a fixed set of values.
  • string, already-localized description (with localization).

Noting that @mapbox/navigation-ios is currently implementing and exposing this client side. Capturing from @1ec5

For reference, this feature is similar to one in the iOS navigation SDK that colors the ETA label at the bottom of turn-by-turn navigation based on the predominant traffic congestion level along the remaining portion of the route. RouteProgress.averageCongestionLevelRemainingOnLeg is public but undocumented. An implementation of the specific label above would be simpler in that it can consider every segment along the entire route unconditionally, so all that’s left is to iterate over those segments, summing up the durations of heavy segments, durations of moderate segments, etc., and determining the highest congestion level based on these sums.

@jyrigo @AhmerKhan1 is this a feature we want to support?

@mapbox/navigation-api @mapbox/navnative @danpat is this something we should expose on _Router_s side? Also cc'ing @vanmaxim for visibility as currently working on the Hybrid Router.

cc @zugaldia @truburt @mapbox/navigation-android

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia con l’implementazione referenziata di RouteProgress.averageCongestionLevelRemainingOnLeg in RouteProgress.swift e rivedi la discussione sull’esposizione di questo dato dal lato Router. Definisci se l’Android SDK debba esporre un enum fisso o una stringa localizzata per la congestione attuale dell’intero percorso e considera la funzionalità completa quando la rappresentazione e il punto di esposizione saranno concordati e implementati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
kotlin, swift
Ambito
api, mobile
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.