gpx-parse

GPX parser for Node.js

gpx-parse

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

#Installation

$ npm install gpx-parse

#Usage

var gpxParse = require("gpx-parse");
 
//from file 
gpxParse.parseGpxFromFile("/path/to/gpxFile", function(errordata) {
    //do stuff 
});
 
//or from string 
gpxParse.parseGpx("<gpx></gpx>", function(errordata) {
    //do stuff 
});
 
// or an external file via HTTP(S) 
gpxParse.parseRemoteGpxFile("http://host.tld/my.gpx", function(errordata) {
    //do stuff 
});
 

#Tests

Tests are written with nodeunit. To test make sure you have the dev dependencies installed and just run:

$ npm test