mapbox / mapbox/mapbox-navigation-android
Identifying exit numbers in roundabouts
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Description
Mapbox Navigation SDK version: 2.0.0-rc.2
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"
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the roundabout maneuver data from the Directions API and the PrimaryManeuver.kt definition linked in the issue. Trace how maneuver fields reach the navigation-ui Maneuver API, then expose the roundabout exit number using the Android Auto Maneuver.setRoundaboutExitNumber definition; done means the requested exit number is available for this route.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100