Skip to content

fix(route): Waypoints that force a loop far longer than your distance are now rejected - #56

Merged
willsawyerrrr merged 1 commit into
mainfrom
fix/waypoint-tour-length
Oct 20, 2026
Merged

willsawyerrrr merged 1 commit into
mainfrom
fix/waypoint-tour-length

Conversation

@willsawyerrrr

Copy link
Copy Markdown
Owner

Waypoints were only checked one at a time against the start, so several pins in different directions could force a loop far longer than the target (e.g. three pins ~400 m out for a 1 km route).

The server now checks the shortest straight-line round trip from the start through all pins against 1.5 × the target distance (the same bound a lone pin had). The iOS shape sheet applies the same check, marking all pins orange when the tour is too long.

Linear: WSD-623

@willsawyerrrr
willsawyerrrr enabled auto-merge (squash) October 20, 2026 07:58
@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loopr Ready Ready Preview Oct 20, 2026 7:58am UTC

@willsawyerrrr
willsawyerrrr merged commit 9c94d39 into main Oct 20, 2026
6 checks passed
@willsawyerrrr
willsawyerrrr deleted the fix/waypoint-tour-length branch October 20, 2026 07:59

This branch was successfully deployed

1 active deployment
Preview — e1f8bc8a Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant