mapbox / mapbox/mapbox-navigation-android
Identifying exit numbers in roundabouts
Personne n'a encore pris cette issue.
- Langage dominant
- Kotlin
- Étoiles
- 651
- Forks
- 321
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
**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
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par les données de manœuvre de rond-point de la Directions API et par la définition de PrimaryManeuver.kt référencée dans l’issue. Suivez le cheminement des champs de manœuvre jusqu’à la navigation-ui Maneuver API, puis exposez le numéro de sortie du rond-point à l’aide de la définition Android Auto Maneuver.setRoundaboutExitNumber ; le travail est terminé lorsque le numéro de sortie demandé est disponible pour cet itinéraire.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- android, kotlin
- Domaine
- mobile
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100