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:
parent
a50bc425ee
commit
7d0918259d
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue