Post #721035
2026-03-21 21:13 UTC
It's a Saturday so I took a break from software development to, err, develop software? Of course.
https://codeberg.org/pbarker/gpxtidy
gpxtidy is a little Rust program to tidy up GPX files for publication - it removes dates, times and personally identifying data so that they can be safely shared online. It simplifies the track by removing points that introduce less than a configurable error threshold. Finally it writes the result as either a GPX file or a GeoJSON LineString.
If you upload tracks of hikes, rides, runs or similar then this might be of interest to you.
I can't publish it to crates.io yet as it relies on an unreleased version of the gpx crate, but hopefully that will get fixed soon.
#OpenSource #Rust #GPX #GeoData
Replies (2)
-
@pbarker@social.afront.org 2026-03-21 21:15
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
-
@narthur@hachyderm.io 2026-03-22 03:44
@pbarker would this work well for motorcycle routes? (I’m new to GPX)