Skip to content
This repository

R script to make an average GPS / georeferenced track by combining/merging two or more into a “line of best fit”

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

R script to make an "average" track of several GPS tracks by combining/merging them into a "line of best fit". Made by Michiel Faber <> and wrapped and "packaged" by Guttorm Flatabø. This isn’t the perfect way to do it, but it works.

The "test-tracks" directory contains six tracks for the same route that you can test the software with. "averageTrack_reference.gpx" is an average track made with this script.

TopoFusion software uses a more sophisticated method and have written a paper about it <>. The issue has also been discussed on the gpsbabel-misc mailing list <>.

See for usage instructions.


This software is dedicated to the public domain through CC0:
Something went wrong with that request. Please try again.