All Projects → fabulator → gpx-builder

fabulator / gpx-builder

Licence: Apache-2.0 license
Builder of GPX files

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to gpx-builder

Geolocation
Flutter geolocation plugin for Android and iOS.
Stars: ✭ 205 (+720%)
Mutual labels:  gps, location
Strava-local-heatmap
Python script to generate a high resolution heatmap from Strava GPX files
Stars: ✭ 102 (+308%)
Mutual labels:  gpx, gps
Maps
🌍🌏🌎 The whole world fits inside your cloud!
Stars: ✭ 253 (+912%)
Mutual labels:  gps, location
orange3-geo
🍊 🌍 Orange add-on for dealing with geography and geo-location
Stars: ✭ 22 (-12%)
Mutual labels:  gps, location
Atlas
🌎 Atlas is a set of APIs for looking up information about locations
Stars: ✭ 21 (-16%)
Mutual labels:  gps, location
Corelocationcli
Command line program to print location information from CoreLocation
Stars: ✭ 138 (+452%)
Mutual labels:  gps, location
FusedBulb
Location fetch library.
Stars: ✭ 22 (-12%)
Mutual labels:  gps, location
Locokit
Location, motion, and activity recording framework for iOS
Stars: ✭ 1,353 (+5312%)
Mutual labels:  gps, location
X-TRACK
A GPS bicycle speedometer that supports offline maps and track recording
Stars: ✭ 3,736 (+14844%)
Mutual labels:  gpx, gps
xavc rtmd2srt
Extract real time meta-data and GPS tracks from Sony XAVC video
Stars: ✭ 29 (+16%)
Mutual labels:  gpx, gps
surger
⚡ Is there surge pricing around me right now?
Stars: ✭ 20 (-20%)
Mutual labels:  gps, location
aic-mobile-ios
Art Institute of Chicago Official Mobile App
Stars: ✭ 29 (+16%)
Mutual labels:  gps, location
Coregpx
A library for parsing and creation of GPX location files. Purely Swift.
Stars: ✭ 132 (+428%)
Mutual labels:  gps, location
Ulogger Android
μlogger • android application for real-time collection and publishing of geolocation data
Stars: ✭ 168 (+572%)
Mutual labels:  gps, location
React Native Fused Location
Finest location for react-native on Android using the new Fused API.
Stars: ✭ 118 (+372%)
Mutual labels:  gps, location
GPXParser.js
GPX file parser javascript library
Stars: ✭ 58 (+132%)
Mutual labels:  gpx, gps
Leaflet Gps
Simple leaflet control plugin for tracking gps position
Stars: ✭ 90 (+260%)
Mutual labels:  gps, location
Phpgeo
Simple Yet Powerful Geo Library for PHP
Stars: ✭ 1,306 (+5124%)
Mutual labels:  gps, location
LocationShare
A simple Android application to share your location
Stars: ✭ 75 (+200%)
Mutual labels:  gps, location
gpx-interpolate
Python function to interpolate GPX data using piecewise cubic Hermite splines
Stars: ✭ 35 (+40%)
Mutual labels:  gpx, gps

GPX builder

npm

This library creates GPX version 1.1 files. I recommend you to check full documentation on topografix. The library has option to use Garmin extensions, so you can add cadence, heart rate, speed and other fitness data to your points.

Integration for Strava allows to use some non-standard metric as power. That XML is not valid by standard, but it's the way that Strava use it.

How to use it

Install:

npm install gpx-builder

Create your first GPX file:

const { buildGPX, GarminBuilder } = require('gpx-builder');

const { Point } = GarminBuilder.MODELS;

const points = [
    new Point(51.02832496166229, 15.515156626701355, {
        ele: 314.715,
        time: new Date('2018-06-10T17:29:35Z'),
        hr: 120,
    }),
    new Point(51.12832496166229, 15.615156626701355, {
        ele: 314.715,
        time: new Date('2018-06-10T17:39:35Z'),
        hr: 121,
    }),
];

const gpxData = new GarminBuilder();

gpxData.setSegmentPoints(points);

console.log(buildGPX(gpxData.toObject()));

Use Strava format that supports power and distance on top of Garmin standard properties.

const { StravaBuilder } = require('gpx-builder');
const { Point } = StravaBuilder.MODELS;

const points = [
    new Point(51.02832496166229, 15.515156626701355, {
        ele: 314.715,
        time: new Date('2018-06-10T17:29:35Z'),
        hr: 120,
        power: 5,
        distance: 1,
    }),
];

How the library works

Library contains two types of classes:

  • Creators - They create xml string from defined Object structure
  • Builders - They offer user friendly way to create data for creators

Library contains three Builders:

Types

What you find in type file are types that are used as object for builders. Eg. you can create object based on WayPoint and use it directly to creator. You can also use Point class in builder section that has more developer friendly constructor. It will convert you data to WayPoint 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].