mapbox / mapbox/mapbox-navigation-ios
[Bug]: Waypoint 'separatesLegs' flag not being applied during navigation
- Dominant language
- Swift
- Stars
- 918
- Forks
- 326
- Avg merge
- 1h 16m
- Merged PRs (30d)
- 3
Description
### Mapbox Navigation SDK version
3.3.1
### Steps to reproduce
Create a multi-waypoint route with the map matching API, set 'separatesLegs' to false for all waypoints except the first and last. Start navigation.
### Expected behavior
The voice instructions do not call out waypoints as destinations.
### Actual behavior
The voice instructions are calling out waypoints as destinations.
As demonstrated by the screenshots below. Waypoint 2 is at the end of the road, and the voice instructions are calling it out as a destination. If I print out the step instructions of the route, waypoints are **not** being treated as destinations.


### Is this a one-time issue or a repeatable issue?
repeatable
Contributor guide
Research direction
Start by reproducing the issue in Mapbox Navigation SDK 3.3.1 with a multi-waypoint route from the map matching API and the described separatesLegs settings. Trace how waypoint metadata reaches voice instruction generation; done means intermediate waypoints are no longer announced as destinations while the first and last remain destinations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100