Metric Trails
Contents

Part II

Why the numbers disagree

GNSS devices measure position, not distance. Distance and elevation gain are reconstructed from sampled points, and five sources of discrepancy shape the result: position drift, spatial resolution, the elevation source, processing and the field protocol. This part takes them one at a time.

Position, not distance

In short

A GNSS device records a sequence of positions. Distance is the sum of the straight lines between them, so it is an estimate that depends on where the points fall and how far apart they are.

A GNSS receiver estimates its position from satellite signals at regular time intervals, usually once per second (1 Hz) in sports watches. Each reading holds a longitude, a latitude, an elevation and a timestamp. The watch, the phone or the training platform then adds up the distance between consecutive readings to report the distance of the activity, and adds up the positive changes in elevation to report the elevation gain.

The line between two readings is straight, but the trail between them usually is not. The result can only be as good as the readings and the way they are joined. Two things go wrong at the level of the readings: each point can be displaced from the true path (position drift), and consecutive points can be too far apart to follow the shape of the trail (spatial resolution). How elevation is obtained and how the geometry is processed then add their own differences, and the field protocol decides how good the raw data can be in the first place.

Illustration, not data. The thick grey line is the trail; dots are GNSS readings, each slightly displaced from the trail; the dark line joins them, as a watch does to compute distance. Top: readings close together follow the bends and the measured length is close to the length of the trail. Bottom: readings far apart cut the corners, and the measured length is about 20% shorter.

The five sources of discrepancy:

  1. Position drift: forests, canyons and weather degrade the signal, and hardware determines how well a device holds it.
  2. Spatial resolution: coarse sampling cuts corners and shortens distance; at 1 Hz, resolution depends on speed.
  3. Elevation: GNSS and barometric elevation fluctuate even at the same point; a digital elevation model gives a stable reference.
  4. Processing: 2D or 3D distance, the distance formula, the coordinate reference system and filtering all change the result.
  5. Field protocol: device choice, placement, pace and conditions determine data quality.

Position drift

In short

Every reading carries an error that depends on the device and the environment. Better antennas and dual-frequency receivers help, but no consumer device removes the noise, and no post-processing can fully repair poor horizontal fixes.

Where it comes from

GNSS signals are delayed by the atmosphere, reflected by cliffs, canyon walls and buildings (multipath), and blocked by tree canopy and terrain. The geometry of the visible satellites changes over time. Humidity and weather affect both the signal and barometric sensors. In forests and canyons, all of these effects add up.

Hardware sets how well a device copes. Devices with better antennas hold signal quality longer during movement and partial obstruction. Dual-frequency (multiband, L1 and L5) receivers improve stability, but they do not eliminate noise. A professional survey receiver can be accurate to within a few centimetres, while an average smartwatch is typically off by one to five metres (ABC News, 2025).

What drift does to the numbers

Random scatter around the true path makes the measured path zigzag, which adds length. This is why GPS devices slightly overestimate distance on road courses, where the geometry is simple (Sanchez et al., 2025a). Drift also corrupts everything derived from consecutive points: speed, acceleration, slope and turning angle.

Evidence

On a 1 km trail segment of Mt Coot-tha, five devices were mounted on top of a backpack (a clear view of the sky and no wrist movement) and recorded six laps under clear, calm conditions. A dual-frequency handheld receiver (Garmin GPSMAP 67i) showed the tightest spread in every metric. A phone (iPhone 12 mini) and an entry-level watch (Garmin Vivoactive 5) showed the widest spreads in elevation change and turning angle, and two watches (Coros Apex Pro II and Vivoactive 5) drifted visibly on curves. Even for the best device, averaging all six laps gave a worst-case gap of 5 m from the reference, against 2.7 m for its best, quality-filtered laps. Platform post-processing reduced vertical noise but left the planar errors and the ranking of devices essentially intact: post-processing cannot compensate for poor horizontal fixes (Sanchez et al., 2025b).

On a 400 m athletics track under clear skies, recordings from eight consumer devices (phones, tablets and a watch) placed on average 49% of their points more than 7.32 m from the lane, the width of six lanes. The raw data contained speeds above 20 m/s and slopes steeper than 30 degrees, on a flat track (Martínez et al., 2026).

Spatial resolution

In short

Trails are fractal: the finer you measure them, the longer they get. A track with points far apart cuts corners and loses distance and climb. That loss cannot be recovered afterwards, so tracks can only be compared at the same spatial resolution.

The coastline problem

In a classic paper, Mandelbrot showed that the length of the coast of Britain depends on the length of the ruler used to measure it: a shorter ruler follows more bays and headlands, and the coast gets longer (Mandelbrot, 1967). Natural terrain has the same self-similar structure at many scales, and so do the paths that cross it. A trail has switchbacks at the scale of tens of metres, bends at the scale of metres, and steps around rocks and roots below that.

A track measures a trail with a ruler as long as the spacing between its points. Two consecutive points 10 m apart imply that the runner travelled in a straight line between them. On natural terrain that is rarely true, and measuring the same segment at a human scale, such as 1 m, gives a longer distance (Sanchez et al., 2025a).

Resolution depends on speed and settings

Watches record at fixed time intervals, not at fixed distances. At 1 Hz, the spacing between points is the speed of the athlete multiplied by one second: a runner descending at 5 m/s leaves points 5 m apart, a hiker climbing at 1 m/s leaves them 1 m apart. Spatial resolution is therefore a random variable that changes along the track, and two recordings of the same trail made at different speeds are not directly comparable. Battery-saving modes lower the sampling rate further, and routes drawn on a map typically have vertices every 30 to 40 m.

Measured length of the first 5 km of the UTMB course at six spacings between points Distance (m) 4,850 4,900 4,950 5,000 1 2 5 10 20 40 Spacing between points (m, log scale) 1 m spacing: 4,998 m 2 m spacing: 4,993 m 8 m spacing: 4,967 m 14 m spacing: 4,945 m 21 m spacing: 4,918 m 40 m spacing: 4,867 m 4,998 m at 1 m 4,867 m at 40 m (−2.6%)
The first 5 km of the UTMB course in Chamonix, measured with spacings between points equal to 1 m and to the minimum, quartiles and maximum spacings found in published UTMB World Series course files. The measured distance falls from 4,998 m to 4,867 m. Data from Sanchez et al. (2025a), Figure 1.
Data table
Spacing between pointsMeasured distance
1 m4,998 m
2 m4,993 m
8 m4,967 m
14 m4,945 m
21 m4,918 m
40 m4,867 m
Evidence

The fractal effect was measured on 34 course files published by UTMB World Series races (the longest distance of each event, as available in November 2024, plus all the final races in Chamonix). The files were recorded with different devices, sampling intervals and protocols. Their average spacing between points was 14.9 m, ranging from 1.9 m to 39.7 m. Each course was resampled to 0.2 m and then down-sampled to every spacing from 0.2 m to 100 m, with elevation taken from the same digital elevation model at every spacing (Sanchez et al., 2025a).

  • 2.9%mean loss of distance in the published files compared with 1 m (up to 6.3%)
  • 14%mean loss of elevation gain (up to 32%)
  • 7%mean loss of km-effort (up to 14%)

Down-sampling reduced distance, elevation gain and km-effort on every course. Below 1 m all three kept increasing, but much more slowly than above 1 m (Sanchez et al., 2025a).

The same behaviour appears in field data. On Mt Coot-tha, where devices recorded points about 1.1 m apart, total length stayed flat when tracks were resampled below their native spacing and fell steadily above it. Above 2.5 m the devices diverged markedly in length, sinuosity and turning angle. Elevation gain varied by about 8% across resampling steps, and the spread of slopes peaked at 1 to 2 m, the scale at which the terrain is most expressive (Sanchez et al., 2025b).

An earlier study found that the number of readings in a recording explained part of the error in both distance and elevation gain, and that a spacing within the 10 m used in mountain racing was not enough to keep elevation gain errors small (Sánchez & Villena, 2020).

Lost resolution cannot be recovered

If a track is recorded coarse, it stays coarse. Adding points between existing ones places them on straight lines; it does not bring back the bends that were never recorded. There is no unbiased way to reconstruct missing geometric detail. Methods that make a coarse track look detailed are like software that "enhances" a pixelated photograph: the result is a plausible face, not the original one.

The only reliable operation is in the other direction. To compare two tracks, both are resampled to the same spacing, which must be at least as coarse as the coarser of the two. This is the principle behind the standard track and the MT standards.

Elevation

In short

Elevation is much noisier than horizontal position, and elevation gain adds up every small vertical error. A digital elevation model gives the same elevation for the same place every time, so it is the stable, auditable reference, provided its resolution is fine enough.

Three ways to get elevation

GNSS and barometric sensors estimate elevation at every reading, so their values fluctuate even at the same physical point. Elevation gain adds every positive change, so every fluctuation upwards counts as climbing and the errors accumulate instead of cancelling out. Many devices also round elevation to the metre, which creates artificial steps of one metre and flat segments with zero slope (Sanchez et al., 2025b).

A DEM is stable and repeatable, but it depends on the horizontal position: a small error in longitude and latitude extracts the elevation of the wrong cell. On steep terrain, that is a large difference. Elevation from a DEM is therefore only as good as the horizontal track and the resolution of the DEM itself.

Evidence: devices against a known climb

A segment of Manquehue Hill in Santiago, Chile, with 386 m of elevation gain over 906 m of horizontal distance (an average grade of 42%), was measured from an orthorectified aerial photogrammetric survey of the Chilean Air Force. Between 2014 and 2019, 202 efforts were recorded on it with three devices (Sánchez & Villena, 2020).

DeviceElevation sourceElevation gain error
Watch with barometric altimeter (Garmin Fenix 5)Barometer+3% ± 4%
GPS watch (Garmin Forerunner 225)GNSS−6% ± 3%
Smartphone (iPhone)GNSS−7% ± 4%

The barometric device consistently overestimated elevation gain and the GNSS devices consistently underestimated it. Precipitation, arm swing, the number of readings and battery-saving settings all helped explain the errors. Replacing each device's elevation with the elevation of an open DEM (based on the Shuttle Radar Topography Mission) moved the errors of every device close to zero and reduced their spread, so that low-cost devices reached the quality of the barometric watch. Smoothing the coordinates alone reduced the spread but not the bias, and smoothing combined with the DEM did worse than the DEM alone (Sánchez & Villena, 2020).

Commercial platforms such as Garmin Connect and Strava also correct elevation with their own DEMs, so the elevation gain of an activity depends on the platform that processed it. An open DEM allows results to be compared across devices and platforms (Sánchez & Villena, 2020).

Evidence: how fine the DEM must be

On Cerro Calán in Santiago, a 20 cm lidar DEM was progressively coarsened, and a public 4 m DEM (AWS Terrain Tiles) was resampled to the same grid sizes with two interpolation methods. Six laps of a circuit with 75 m of climbing were recorded with three watches, and each watch's elevation was replaced with DEM values at every resolution (Sanchez et al., 2024a).

  • Elevation gain error grew as the DEM became coarser. Up to 80 cm, errors were not significantly different from the 20 cm lidar. From 160 cm they increased significantly, and they escalated at coarser grids.
  • The public 4 m DEM, refined with bilinear interpolation, approached zero error at about 40 cm and reached accuracy equivalent to lidar at fine resolutions, significantly better than the same DEM at its native 4 m. Nearest-neighbour resampling performed poorly.
  • Refining a public DEM therefore offers a low-cost alternative to lidar for elevation gain, without adding new terrain information.

Where lidar point clouds exist, they are better still. On Mt Coot-tha, public rasters that were merely resampled underestimated elevation gain by up to 12 m on 1 km and flattened the variability of slopes at grids coarser than 5 m, while DEMs derived from Queensland Government lidar surveys gave nearly identical results from 0.25 m to 30 m. In the words of the study, you can't beat good data: surfaces derived directly from point clouds are preferable to resampled coarse rasters (Sanchez et al., 2025b).

Elevation that appears while standing still

In published race files, elevation also changes when the device is not moving. A quarter of the 34 UTMB World Series files spent more than 2.5% of their readings stationary, one as much as 24.9%. One file accumulated 688 m of elevation gain while the recorder was not moving, most likely through barometric recalibration, sensor drift or signal loss during pauses (Sanchez et al., 2025a). Elevation gain is a multifactorial problem: it depends on the fractal nature of the terrain, the spatial resolution of the track, the precision of each point and the method used to add up the climbing.

Processing

In short

The same coordinates give different distances depending on whether distance is 2D or 3D, which formula and coordinate system are used, and how the track is filtered. Distances are only comparable when they are computed the same way.

2D or 3D

GNSS devices and training platforms report horizontal (2D) distance, as if the course were flattened onto a map. Measuring wheels and treadmills measure distance along the surface (3D). On steep terrain the difference is large. On the Manquehue segment above, 906 m of horizontal distance and 386 m of climbing correspond to at least 985 m of distance along the slope, about 9% more. This difference also limits direct comparisons between treadmill experiments, which work with true 3D distance, and field studies, which usually report 2D distance (Sanchez et al., 2025b).

Formula and coordinate system

Distance between two coordinates can be computed on a sphere (great circle or haversine), along lines of constant bearing (rhumb line), or as straight lines in a projected coordinate system. Each choice gives a slightly different result for the same coordinates, and so does the choice of coordinate reference system. Over thousands of readings the differences add up. The metrictrails package computes every horizontal distance in the WGS 84 / UTM zone of the track, in metres (Sanchez, 2026).

Filtering

Most platforms smooth tracks before computing distance and elevation, with algorithms they do not disclose (Sánchez & Villena, 2020; Sanchez et al., 2025b). Smoothing removes positional noise, which shortens the zigzag that drift adds, but strong smoothing also cuts real bends. Each smoothing method gives a different length for the same raw track (Sanchez, 2026). Platform corrections can also change one dimension and not the other: on Mt Coot-tha, Strava's elevation correction narrowed the vertical dispersion of the tracks but left their horizontal metrics essentially unchanged (Sanchez et al., 2025b).

Evidence: a transparent processing chain

A post-processing methodology for running trajectories combines, in sequence: a Kalman filter on longitude, latitude and altitude; speed, acceleration and slope computed from consecutive points; outlier detection in moving windows, where a point is an outlier when it meets at least two of three criteria (an extreme value by the interquartile range, an abrupt jump, or a large deviation from the local mean); linear interpolation of the outliers; a Savitzky-Golay filter; uniform temporal interpolation; and correction of jumps at the start and end of the recording. Its parameters were chosen by a two-phase grid search that balanced agreement in total distance with smoothness (Martínez et al., 2026).

Tested on 36 recordings of repeated laps of a 400 m athletics track with eight consumer devices, the method reduced the root mean square error of slope by about 90% (from 33.7 to 3.4 degrees) and the mean absolute error of speed from 54.8 m/s to 2.6 m/s, and cut the share of points more than six lanes from the track from 49.2% to 32.2%, with fewer out-of-range points in 85% of the recordings. Positional error relative to the traced lane changed only slightly: the method prioritises kinematic consistency over absolute geometric alignment, and its elevation component was not validated against a high-precision reference (Martínez et al., 2026).

Field protocol

In short

How a course is recorded decides how good the data can ever be. The device, where it is worn, the weather, the pace of the person recording and the record kept of the session all leave a mark. Accurate course measurement needs a standardised field protocol.

Evidence: what a good protocol achieves

On Mt Coot-tha, a dual-frequency handheld receiver logged raw observations (RINEX) alongside its track. Precise satellite orbits and clocks from the International GNSS Service, distributed by the Queensland Spatial Catalogue, were matched to these observations to estimate the 3D uncertainty of every reading. The two laps with a 3D uncertainty below 0.45 m in every reading served as the reference, and all tracks were resampled to 1 m and given elevation from a 1 m lidar DEM (Sanchez et al., 2025b).

RecordingWorst-case gap (3D Hausdorff)Points within 1 m (Metric Score)
Best quality-filtered laps, dual-frequency receiver2.7 m88%
Same receiver, average of all six laps5 m31%
Online route builders (five platforms)over 30 munder 3%

The best laps also had a mean separation from the reference of 0.6 m. A single well-captured field measurement outperformed both the average of the best device and every route builder. The study proposes practical targets for locomotion research: a worst-case gap under 3 m and a separation under 1 m. Sub-metre trail mapping is achievable with consumer dual-frequency GNSS, raw observation data and detailed elevation data, while routes designed on a screen should not replace high-quality field measurements (Sanchez et al., 2025b).

Lost resolution cannot be recovered, and tracks are only comparable when they share the same resolution and the same elevation source. Part III describes how Metric Trails turns this into a method.

References

  1. Mandelbrot, B. (1967). How long is the coast of Britain? Statistical self-similarity and fractional dimension. Science, 156(3775), 636-638. doi.org/10.1126/science.156.3775.636
  2. Martínez, C., Sanchez, R., & Diaz, C. (2026). A post-processing methodology for improving kinematic consistency in GNSS-based running trajectories. 6th International Conference on Electrical, Computer and Energy Technologies (ICECET), Rome. IEEE. doi.org/10.1109/ICECET65726.2026.11632531
  3. Sánchez, R., & Villena, M. (2020). Comparative evaluation of wearable devices for measuring elevation gain in mountain physical activities. Proceedings of the Institution of Mechanical Engineers, Part P: Journal of Sports Engineering and Technology, 234(4), 312-319. doi.org/10.1177/1754337120918975
  4. Sanchez, R., Egli, P., Besomi, M., & Truffello, R. (2024). Assessing the impact of digital elevation model resolution on elevation gain estimations in trail running. International Conference on Electrical, Computer and Energy Technologies (ICECET), Sydney. IEEE. doi.org/10.1109/ICECET61485.2024.10698606
  5. Sanchez, R., Egli, P. E., Jornet, K., Duggan, M., & Besomi, M. (2025). How fractal complexity distorts distance and elevation gain in trail and mountain running: the case for course measurement standardization. Proceedings of the Institution of Mechanical Engineers, Part P: Journal of Sports Engineering and Technology. Preprint: SportRxiv. doi.org/10.1177/17543371251341660
  6. Sanchez, R., Nieto-Jimenez, C., & Riveros-Matthey, C. (2025). High-precision mapping of mountain terrain for human locomotion research: a multimodal geospatial framework. 15th IEEE International Conference on Pattern Recognition Systems (ICPRS), Viña del Mar. doi.org/10.1109/ICPRS66293.2025.11302827
  7. Sanchez, R. (2026). metrictrails: Processing of GNSS streams from sports watches. R package version 1.0.0. CRAN.R-project.org/package=metrictrails
  8. Clarke, S. (2025, 28 May). Researcher pushing for international standard for mapping trail running events in bid for Olympics inclusion. ABC News. www.abc.net.au/news/2025-05-28/trail-running-international-standard-mapping-olympics-push/105308848