0.0.3 • Published 9 years ago

gpx-stream v0.0.3

Weekly downloads
1
License
BSD
Repository
github
Last release
9 years ago

gpx-stream

NPM

Stream tracked points (<trkpt/> nodes) from a GPX 1.1 input string.

Usage

var gpx = require('gpx-stream');
var points = new gpx();
var source = fs.createReadStream('./oregon.gpx');

source.pipe(points);

points.on('readable', function(){
  var point;

  while(point = points.read()){
    console.log([
      'Lat:', point.lat,
      'Lon:', point.lon,
      'elevation:', point.elevation,
      '@time', point.time
    ].join(' '));
  }
});

points.on('end', function(){
  console.log('finished');
});
0.0.3

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago