gpxtimeshift

0.1.3 • Public • Published

gpxtimeshift

Command line tool to shift timestamps in GPX file by specified offset

#example
gpxtimeshift +1h < today.gpx

Install

sudo npm install -g gpxtimeshift

Usage

gpxtimeshift [-h] <offset> < <gpxfile> > <output>
Command line tool to shift timestamps in GPX file.

example:
    gpxtimeshift +1s < today.gpx >output.gpx  #+ 1 second
    gpxtimeshift +1h < today.gpx >output.gpx  #+ 1 hour
    gpxtimeshift +1d < today.gpx >output.gpx  #+ 1 day
    gpxtimeshift +1m < today.gpx >output.gpx  #+ 1 minute
    gpxtimeshift -1d < today.gpx >output.gpx  #- 1 day

Use as module

var GpxTimeShift=require('gpxtimeshift')

gpxString="<?xml version ......</gpx>"
offsetSeconds=-3600;

GpxTimeShift(gpxString,offsetSeconds)
.then(function(gpxString){
    console.log(gpxString);
});

Change Log

  • 0.1.x:first release

Dependencies (3)

Dev Dependencies (3)

Package Sidebar

Install

npm i gpxtimeshift

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

5.73 kB

Total Files

5

Last publish

Collaborators

  • kssfilo