Post #2046013
2026-03-21 21:15 UTC
I'm particularly proud that I got to use some maths in this... both the haversine formula and Heron's formula.
https://codeberg.org/pbarker/gpxtidy/src/commit/5016504a58a9afc93231f4f3e928ae83953061d0/src/main.rs#L70
Replies (1)
-
@pbarker@social.afront.org 2026-03-21 21:52
For comparison, the foreground blue track is after processing by gpxtidy with the default error threshold of 5m. The background red track is the original, just peeking out in a few places but barely distinguishable. The blue track is accurate enough for someone to follow the route you took. The original (red) GPX file was 1200 points, 278kiB of data. After gpxtidy processing (blue) it's 194 points, 10kiB as a GPX file, or 4.3kiB as geojson data you can use with leaflet.js. (Map data from https://www.openstreetmap.org/)