mapbox / mapbox/mapbox-navigation-android

Identifying exit numbers in roundabouts

Abierto
#4,855 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Android Auto improvement jira-sync-complete
Lenguaje dominante
Kotlin
Estrellas
651
Forks
321
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con los datos de maniobras de rotonda de la Directions API y la definición de PrimaryManeuver.kt enlazada en el issue. Sigue cómo llegan los campos de la maniobra a la navigation-ui Maneuver API y, después, expón el número de salida de la rotonda mediante la definición de Android Auto Maneuver.setRoundaboutExitNumber; se considera completado cuando el número de salida solicitado está disponible para esta ruta.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
android, kotlin
Área
mobile
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.