Use epsilon 0.005 for Douglas-Peucker waypoint extraction

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-04-02 22:40:01 +01:00
parent 0e27d6eaef
commit 2b0b89add8
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -35,7 +35,7 @@ export function extractWaypoints(gpxData: GpxData): Array<{ lat: number; lon: nu
const allPoints = gpxData.tracks.flat().map((p) => ({ lat: p.lat, lon: p.lon }));
if (allPoints.length < 2) return allPoints;
return douglasPeucker(allPoints, 0.05);
return douglasPeucker(allPoints, 0.005);
}
/**