mapbox / mapbox/mapbox-navigation-ios
[Feature request] make separatesLegs only affect turn-by-turn navigation, but not the display of the route
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 918
- Forks
- 326
- Avg merge
- 1h 16m
- Merged PRs (30d)
- 3
Description
I want the user of my app to be able to define multiple waypoints on a map and specify which ones should be 'vias' (separatesLegs=false) and 'stops' (separatesLegs=true). When showing such a route on a map, I believe it is beneficial to see vias exactly because they indicate why the route was calculated this way, and to be able to manage these points (e.g. tap to remove). But during active turn-by-turn navigation, I want to keep the current Mapbox behavior, which is to just ignore such vias.
I understand that I can draw my own waypoints on top of the map as POI markers, but I think it still makes sense to make the default behavior a bit more informative and usable out of the box.
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
No files, tests, or entry points are named. Start by tracing how separatesLegs waypoints are handled during route display and active turn-by-turn navigation; done means vias remain visible and manageable on the map while navigation continues to ignore them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100