fit2gpx-rs: convert fit to gpx files efficiently, add elevation data if you'd like
- have Rust
- with
cargofrom crates.io:cargo install fit2gpx - with
cargofrom github:cargo install --locked --git "https://github.com/jeromeschmied/fit2gpx-rs" - with
cargoandgitfrom github:
git clone --depth 1 "https://github.com/jeromeschmied/fit2gpx-rs"
cd fit2gpx-rs
cargo install --locked --path .Note
soon there might also be binary releases
see fit2gpx --help
let's say you want to convert a_lovely_evening_walk.fit to a_lovely_evening_walk.gpx
in that case, you'd do the following
fit2gpx a_lovely_evening_walk.fit
if you also want to add elevation data, as the .fit file didn't contain any, follow these steps
short:
fit2gpx::convert_file("walk.fit").unwrap();see docs or examples for more detailed usage
This is a simple Rust library and binary for converting .FIT files to .GPX files.
A significantly faster alternative to the great fit2gpx with the ability to add elevation data while converting
- FIT is a GIS data file format used by Garmin GPS sport devices and Garmin software
- GPX is an XML based format for GNSS tracks
Yes.
- it's about 80 times as fast (single file, no elevation added)
- it's way faster with multi-file execution too
- it can add elevation data
- Rust library
- it's fun
- first of all, have srtm data:
.hgtfiles downloaded one great source is Sonny's collection, it's only for Europe though - then unzip everything, place all of the
.hgtfiles to a single directory - set
$ELEV_DATA_DIRto that very directory or pass--elev_data_dir ~/my_elevation_data_dir - make sure that
elevationfeature is enabled, it's the default - pass the
--add_elevation | -aflag tofit2gpx
- unzipping
.gzfiles. solution: in your activities directory rungzip -d *.gz - adding metadata to gpx files from the
activities.csvfile