Skip to content

stensrud/gpx-parse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpx-parse NPM Version Build Status Coverage Status Code Climate

A library for parsing gpx data. Still in its infancy. Works against the Gpx v1.0 spec. Looking to support 1.1 once 1.0 has been completed. Partial support for routes, waypoints and tracks. 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(error, data) {
	//do stuff
});

//or from string
gpxParse.parseGpx("<gpx></gpx>", function(error, data) {
	//do stuff
});

#Tests

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

$ npm test

Packages

No packages published

Languages

  • JavaScript 80.0%
  • CSS 20.0%