gpxtojs
v1.0.6
Published
a library for parsing gpx files and extract data that provide functionalities * extract gpx metadata and waypoints * extract tracks and routes with points and total distance of the route * convert the gpx to geojson
Downloads
5
Readme
GPX Parser
a library for parsing gpx files and extract data that provide functionalities
- extract gpx metadata and waypoints
- extract tracks and routes with points and total distance of the route
- convert the gpx to geojson
Install
npm i gpxtojs
Usage
const gpxtojs = require("gpxtojs")
const gpx = new gpxtojs.GPXParser();
gpx.parse(gpxString)
gpx.getMetadata()
gpx.getWaypoints()
gpx.getTracks()
gpx.getRoutes()
Convert to Geojson
gpx.toGeoJson()