Package: metrictrails Title: Processing of GNSS Streams from Sports Watches Version: 1.0.0 Authors@R: person(given = "Raimundo", family = "Sanchez", role = c("aut", "cre"), email = "raimundosanchezu@gmail.com", comment = c(ORCID = "0000-0003-2242-1335")) Description: 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) . URL: https://github.com/raimun2/metrictrails BugReports: https://github.com/raimun2/metrictrails/issues License: MIT + file LICENSE Encoding: UTF-8 LazyData: true Roxygen: list(markdown = TRUE) Depends: R (>= 4.1) Imports: magrittr, sf, stats, terra, tibble, utils Suggests: curl, knitr, rmarkdown, testthat (>= 3.0.0) VignetteBuilder: knitr Config/testthat/edition: 3 Config/roxygen2/version: 8.1.0 Config/pak/sysreqs: libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev libssl-dev libproj-dev libsqlite3-dev libudunits2-dev Repository: https://raimun2.r-universe.dev Date/Publication: 2026-10-23 00:57:55 UTC RemoteUrl: https://github.com/raimun2/metrictrails RemoteRef: HEAD RemoteSha: 240bbf5d9dbe19e98892cc8df438de728d9ed22b NeedsCompilation: no Packaged: 2026-10-23 01:49:15 UTC; root Author: Raimundo Sanchez [aut, cre] (ORCID: ) Maintainer: Raimundo Sanchez