mapbox / mapbox/mapbox-navigation-android
Identifying exit numbers in roundabouts
Nessuno ha ancora preso questa issue.
- Lingua principale
- Kotlin
- Stelle
- 651
- Fork
- 321
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**Mapbox Navigation SDK version:** 2.0.0-rc.2
https://hey.mapbox.com/directions-debug/#route=6.124388228364182,45.9055553186453;6.126108200540244,45.90652815414734&server=https://api.mapbox.com&profile=mapbox/driving-traffic&style=empty&queryparams=steps%3Dtrue%26overview%3Dfull%26geometries%3Dgeojson%26roundabout_exits%3Dtrue%26voice_units%3Dimperial%26voice_instructions%3Dtrue&token=pk.eyJ1Ijoic3ZjLW9rdGEtbWFwYm94LXN0YWZmLWFjY2VzcyIsImEiOiJja2d0bHMxbDcwNHI0MnRxbHBwNTBoeHN0In0.X5Gn0apaqXAXDkZ1sSDLfA
Directions API provides an exit number
```
"maneuver": {
"type": "roundabout",
"exit": 3,
"instruction": "Enter the roundabout and take the 3rd exit onto Avenue de Brogny/D 1201.",
"modifier": "slight right",
"bearing_after": 123,
"bearing_before": 94,
"location": [
6.125695,
45.90563
]
},
```
But I can't find this exit number from the navigation-ui Maneuver api. It seems like it should be near the ["degrees"](https://github.com/mapbox/mapbox-navigation-android/blob/bd097da71d4240b064af9a58614f3435cf803106/libnavui-maneuver/src/main/java/com/mapbox/navigation/ui/maneuver/model/PrimaryManeuver.kt#L33)
Here's the definition we're looking to satisfy for Android Auto from their `Manevuer.setRoundaboutExitNumber`
```
For example, if the driver is joining a counter-clockwise roundabout with 4 exits,
then the exit to the right would be exit #1, the one straight ahead would be exit #2,
the one to the left would be exit #3 and the one used by the driver to join the
roundabout would be exit #4.
```
cc: @cafesilencio @abhishek1508 @Guardiola31337
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con i dati delle manovre nelle rotatorie della Directions API e con la definizione di PrimaryManeuver.kt collegata nell’issue. Traccia il percorso dei campi della manovra fino alla navigation-ui Maneuver API, quindi esponi il numero dell’uscita della rotatoria usando la definizione di Android Auto Maneuver.setRoundaboutExitNumber; il lavoro è completato quando il numero dell’uscita richiesto è disponibile per questo percorso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, kotlin
- Ambito
- mobile
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100