Increase route-near insertion threshold from ~200m to ~1km

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-04-11 02:39:08 +02:00
parent a50bc425ee
commit 7d0918259d
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -477,8 +477,8 @@ export function PlannerMap({ yjs, onRouteRequest, highlightPosition, highlighted
}
}
}
// If within ~200m of the route, insert after the segment's waypoint
if (bestDist < 0.002 && bestSegment >= 0) {
// If within ~1km of the route, insert after the segment's waypoint
if (bestDist < 0.01 && bestSegment >= 0) {
insertIndex = bestSegment + 1;
}
}