trails/packages
Ullrich Schäfer 0e27d6eaef
Use Douglas-Peucker simplification for single-segment GPX
For GPX files with one long track segment, extracting only start/end
gives just 2 waypoints. Now uses Douglas-Peucker line simplification
(epsilon=0.05° ≈ 5km) to find significant turning points.

Result: berlin-dresden-radweg (249km, 5660 points) → 10 waypoints
that capture the route's key direction changes.

Multi-segment GPX files still use segment endpoints as before.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 22:36:13 +01:00
..
db Fix PostGIS geom population: use parseGpxAsync + raw SQL 2026-04-02 17:32:07 +01:00
gpx Use Douglas-Peucker simplification for single-segment GPX 2026-04-02 22:36:13 +01:00
i18n Add route error toasts with waypoint rollback 2026-03-29 14:09:20 +02:00
map Fix planner production server + use .ts extensions everywhere 2026-03-25 01:41:33 +01:00
types Fix planner production server + use .ts extensions everywhere 2026-03-25 01:41:33 +01:00
ui Fix planner production server + use .ts extensions everywhere 2026-03-25 01:41:33 +01:00