gpxtojs

1.0.6 • Public • Published

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

/gpxtojs/

    Package Sidebar

    Install

    npm i gpxtojs

    Weekly Downloads

    0

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    16 kB

    Total Files

    4

    Last publish

    Collaborators

    • hefni101