All Projects → Luuka → GPXParser.js

Luuka / GPXParser.js

Licence: MIT License
GPX file parser javascript library

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to GPXParser.js

X-TRACK
A GPS bicycle speedometer that supports offline maps and track recording
Stars: ✭ 3,736 (+6341.38%)
Mutual labels:  gpx, gps
Coregpx
A library for parsing and creation of GPX location files. Purely Swift.
Stars: ✭ 132 (+127.59%)
Mutual labels:  xml, gps
Phpgpx
Simple library for reading and creating GPX files written in PHP.
Stars: ✭ 92 (+58.62%)
Mutual labels:  xml, gps
xavc rtmd2srt
Extract real time meta-data and GPS tracks from Sony XAVC video
Stars: ✭ 29 (-50%)
Mutual labels:  gpx, gps
gpx-interpolate
Python function to interpolate GPX data using piecewise cubic Hermite splines
Stars: ✭ 35 (-39.66%)
Mutual labels:  gpx, gps
ESP32 IMU BARO GPS VARIO
GPS altimeter/variometer with LCD display, routes with waypoints, data/gps track logging, bluetooth NMEA sentence transmission, wifi AP + webpage configuration
Stars: ✭ 72 (+24.14%)
Mutual labels:  gps, waypoints
Strava-local-heatmap
Python script to generate a high resolution heatmap from Strava GPX files
Stars: ✭ 102 (+75.86%)
Mutual labels:  gpx, gps
trackanimation
Track Animation is a Python 2 and 3 library that provides an easy and user-adjustable way of creating visualizations from GPS data.
Stars: ✭ 74 (+27.59%)
Mutual labels:  gpx, gps
gpx-builder
Builder of GPX files
Stars: ✭ 25 (-56.9%)
Mutual labels:  gpx, gps
GDX-HTML
using HTML + CSS + JS to build libGDX UI!
Stars: ✭ 21 (-63.79%)
Mutual labels:  xml
foliapy
An extensive Python library for dealing with FoLiA (Format for Linguistic Annotation) documents, a rich XML-based format for linguistic annotation finding application in Natural Language Processing (NLP). This library was formerly part of PyNLPl.
Stars: ✭ 13 (-77.59%)
Mutual labels:  xml
Server-Help
💻 This VSTO Add-In allows the user to ping a list of servers and creates a file for Microsoft Remote Desktop Manager an Excel table. This is used for quickly determining which servers are offline in a list. It is written in 3 different versions as a VSTO Add-In in C# and VB.NET as well as a VBA Add-In.
Stars: ✭ 21 (-63.79%)
Mutual labels:  xml
TET
TET- Trans Euro Trail - Public Files
Stars: ✭ 27 (-53.45%)
Mutual labels:  gpx
saxophone
Fast and lightweight event-driven streaming XML parser in pure JavaScript
Stars: ✭ 29 (-50%)
Mutual labels:  xml
learn-xquery
A list of great articles, blog posts, and books for learning XQuery
Stars: ✭ 33 (-43.1%)
Mutual labels:  xml
SitemapTools
A sitemap (sitemap.xml) querying and parsing library for .NET
Stars: ✭ 19 (-67.24%)
Mutual labels:  xml
EasyWayLocation
This library contain all utils related to google location. like, getting lat or long, Address and Location Setting dialog, many more...
Stars: ✭ 142 (+144.83%)
Mutual labels:  gps
AndrOBD-Plugin
AndrOBD plugin development project
Stars: ✭ 38 (-34.48%)
Mutual labels:  gps
xml-in
your friendly XML navigator
Stars: ✭ 61 (+5.17%)
Mutual labels:  xml
ios logger
Application for camera and sensor data logging (iOS)
Stars: ✭ 60 (+3.45%)
Mutual labels:  gps

GPXParser

GPXParser.js

GPXParser.js is a lightweight JS library wich parse .gpx file and get or compute various datas like

  • GPX metadata
  • total and cumulate distances
  • min, max, average, positive and negative height différence

GPX ? What is this ?

Wikipedia say :

GPX, or GPS Exchange Format, is an XML schema designed as a common GPS data format for software applications.

gpx files are based on xml with specific tags and attributes

For more information about gpx format see http://www.topografix.com/gpx_manual.asp

How to do

Install from npm

npm install --save gpxparser

Load JavaScript file

From an HTML document :

<script src="./js/GPXParser.js"></script>

From a node.js script :

let gpxParser = require('gpxparser');

Create and parse file

var gpx = new gpxParser(); //Create gpxParser Object
gpx.parse("<xml><gpx></gpx></xml>"); //parse gpx file from string data

Use the gpx Object

var totalDistance = gpx.tracks[0].distance.total;

Export gpxParser Objecto to GeoJSON

let geoJSON = gpx.toGeoJSON();

Documentation

Property Type Description
xmlSource XML XML Object parsed from gpx string file
metadata Metadata object File metadata
waypoints Array of Waypoint object Array of waypoints
tracks Array of Track object Array of waypoints of tracks
routes Array of Route object Array of waypoints of routes

Metadata object

Property Type Description
name String File name
desc String Description
link Link object Web address
author Float Author object
time DateTime Time

Waypoint object

Property Type Description
name String Point name
cmt String Comment
desc String Point description
lat Float Point latitute
lon Float Point longitude
ele Float Point elevation
time Date Point time

Track object

Property Type Description
name String Point name
cmt String Comment
desc String Point description
src String Used device
number String Track identifier
link String Link to a web address
type String Track type
points Array Points object array
distance Distance Object Distance informations about the Route
elevation Elevation Object Elevation informations about the Route
slopes Float Array Slope of each sub-segment

Route object

Property Type Description
name String Point name
cmt String Comment
desc String Point description
src String Used device
number String Track identifier
link String Link to a web address
type String Route type
points Array Points object array
distance Distance Object Distance informations about the Route
elevation Elevation Object Elevation informations about the Route
slopes Float Array Slope of each sub-segment

Point object

Property Type Description
lat Float Point latitute
lon Float Point longitude
ele Float Point elevation
time Date Point time

Distance object

Property Type Description
total Float Total distance of the Route/Track
cumul Float Cumulative distance at each point of the Route/Track

Elevation object

Property Type Description
max Float Maximum elevation
min Float Minimum elevation
pos Float Positive elevation difference
neg Float Negative elevation difference
avg Float Average elevation

Author object

Property Type Description
name String Author name
email Email object Email address of the author
link Link object Web address

Email object

Property Type Description
id String Email id
domain String Email domain

Link object

Property Type Description
href String Web address
text String Link text
type String Link type
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].