trails/packages/gpx
Ullrich Schäfer d5bcecb345
Fix distance calculation for GPX files without elevation data
Distance was only stored in the elevation profile array, which was
empty when track points had no <ele> elements. Now computed via
haversine independently and exposed as gpxData.distance.

Tested: berlin-dresden-radweg-2021.gpx (5660 points, no elevation)
now correctly reports 248.8 km.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 20:32:47 +01:00
..
src Fix distance calculation for GPX files without elevation data 2026-04-02 20:32:47 +01:00
package.json Implement shared packages (tasks 2.1-2.6) 2026-03-22 13:09:35 +01:00
tsconfig.json Complete monorepo toolchain setup (tasks 1.1-1.7) 2026-03-22 12:12:57 +01:00