mapbox / mapbox/mapbox-navigation-ios

[Bug]: Waypoint 'separatesLegs' flag not being applied during navigation

Open
#4,725 9 comments 0 reactions 0 assignees View on GitHub
bug
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.

![SCR-20241002-lpgt](https://github.com/user-attachments/assets/2df3c150-0931-4000-b067-88c498fad383)

![SCR-20241002-lopi](https://github.com/user-attachments/assets/ae85ceb2-3f25-44d7-a4e2-f23f31746e6a)

### Is this a one-time issue or a repeatable issue?

repeatable

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.