From 7d0918259d58a6795d4eb8f3056c6263c0f471c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sat, 11 Apr 2026 02:39:08 +0200 Subject: [PATCH] Increase route-near insertion threshold from ~200m to ~1km Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/planner/app/components/PlannerMap.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/planner/app/components/PlannerMap.tsx b/apps/planner/app/components/PlannerMap.tsx index 4c7aa0a..6f05030 100644 --- a/apps/planner/app/components/PlannerMap.tsx +++ b/apps/planner/app/components/PlannerMap.tsx @@ -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; } }