mapbox / mapbox/mapbox-navigation-ios

Route simulation turns the wrong way when sped up

Open
#1,908 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug topic: location
Dominant language
Swift
Stars
918
Forks
326
Avg merge
1h 16m
Merged PRs (30d)
3

Description

A simulated route between 39.20037°N, 84.38027°W and 39.1997269°N, 84.3782329°W at 2× speed should make a sharp left turn from southbound Kenwood Road to westbound Montgomery Road. But instead of spinning counterclockwise, the simulation spins clockwise the long way around. Here it is having spun some 45° clockwise:

whee

This issue doesn’t reproduce at 1× speed, and it doesn’t affect slighter turns.

/cc @frederoni @JThramer

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the route simulation between the coordinates in the issue at 2× speed, then compare its turn direction with the 1× behavior and with slighter turns. Done means the sharp southbound-to-westbound turn rotates counterclockwise at 2× speed without regressing the unaffected cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.