Skip to content

Instantly share code, notes, and snippets.

@Buthrakaur
Last active January 5, 2016 07:39
Show Gist options
  • Save Buthrakaur/9adcee659d21adc0c05a to your computer and use it in GitHub Desktop.
Save Buthrakaur/9adcee659d21adc0c05a to your computer and use it in GitHub Desktop.
GPSBabel script to convert GPX route to track - usable for Endomondo workout imports etc. Change faketime value to required value - the value is timestamp of track start "+" number of seconds between points.
REM usage: gpx_route_to_track.bat source.gpx target.gpx
gpsbabel -r -i gpx -f %1 -x transform,trk=rte,del -o gpx -F %2
gpsbabel -r -i gpx -f %2 -x track,faketime=f20160101110000+2 -o gpx -F %2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment