Skip to content

NodeJS .gpx to GeoJson formatter to adapt files to Leaflet Heightgraph plugin

Notifications You must be signed in to change notification settings

pablogtrz/gpx-to-geojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GPX to GeoJson parser

Parser to convert GPX file into a valid GeoJson for Leaflet HeighGraph plugin.

Usage

  1. Install dependencies with npm install or yarn
  2. Move .gpx files into /input folder. They will be parsed and moved into /ouput folder with same file name.
  3. Run script using npm run parse or yarn parse

Config file

You MUST create a config.js file into root folder with following structure:

module.exports = {
    creator: 'John Doe',
    summary: 'Elevation',
    removeWaypoints: true,
}

About

NodeJS .gpx to GeoJson formatter to adapt files to Leaflet Heightgraph plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published