0.0.5 • Published 10 years ago

gpx2json v0.0.5

Weekly downloads
1
License
BSD
Repository
-
Last release
10 years ago

gpx2json

Simple GPX to JSON converter

Example Code

var gpx2json = require('gpx2json'),
    fs = require('fs');

var filename = process.argv[2];
if (!filename) {
    console.log("Param 1 should be a GPX file");
} else {
    fs.stat(filename, function(err, stat) {
        if (err) {
            console.log("Error opening file (" + filename + ")");
            console.log(err.code);
        } else {
            gpx2json.parseGPXFile(filename, function(err, data) {
                console.log(JSON.stringify(data, null, 2));
            });
        }
    });
}
0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago