GPX parser for Node.js
A library for parsing gpx data. Still in its infancy. Works against most/some of the Gpx v1.0 spec and Gpx v1.1. Looking to support whole spec eventually. Feel free to fork if you need something specific.
More information available on the Project Page
$ npm install gpx-parse
The module has been designed to work within node but you can also use it on the client side using the browserfy version that can be found in the dist folder.
var gpxParse = require"gpx-parse";//from filegpxParseparseGpxFromFile"/path/to/gpxFile"//do stuff;//or from stringgpxParseparseGpx"<gpx></gpx>"//do stuff;// or an external file via HTTP(S)gpxParseparseRemoteGpxFile""//do stuff;
Tests are written with nodeunit. To test make sure you have the dev dependencies installed and just run:
$ npm test