An open API service indexing awesome lists of open source software.

https://github.com/mohamedelhefni/gpx-parser

library for parsing gpx files
https://github.com/mohamedelhefni/gpx-parser

geojson gpx javascript json

Last synced: 6 months ago
JSON representation

library for parsing gpx files

Awesome Lists containing this project

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
```js
const gpxtojs = require("gpxtojs")
const gpx = new gpxtojs.GPXParser();
gpx.parse(gpxString)
gpx.getMetadata()
gpx.getWaypoints()
gpx.getTracks()
gpx.getRoutes()
```

### Convert to Geojson
```js
gpx.toGeoJson()
```