Skip to content

mohamedelhefni/gpx-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

Releases

No releases published

Packages

No packages published