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