Processing of GNSS Streams from Sports Watches

Tools to read, clean and standardise GNSS (Global Navigation Satellite System) streams recorded by sports watches and similar devices, with a focus on trail and mountain running. The pipeline reads GPX files, applies a naming convention, sanitises coordinates (Kalman, LOESS, Gaussian kernel or Savitzky-Golay smoothing, and red flags for implausible readings), resamples the trajectory to a uniform spatial resolution derived from the Nyquist criterion, and replaces elevation with values from a Digital Elevation Model. Derived measures include speed, slope, elevation gain and kilometre-effort, Tobler hiking function parameters fitted by quantile regression, comparison between streams, detection of passes along a route and map matching to a known reference trail by dynamic programming. Methods follow Sanchez and Villena (2020) , Sanchez et al. (2024) , Sanchez et al. (2025) and Martinez, Sanchez and Diaz (2026) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("metrictrails")

1.0.0 by Raimundo Sanchez, 4 hours ago


https://github.com/raimun2/metrictrails


Report a bug at https://github.com/raimun2/metrictrails/issues


Browse source code at https://github.com/cran/metrictrails


Authors: Raimundo Sanchez [aut, cre] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports magrittr, sf, stats, terra, tibble, utils

Suggests curl, knitr, rmarkdown, testthat


See at CRAN