tcx

0.1.0 • Public • Published

tcx

Convert TCX files to GeoJSON in JavaScript.

installation

npm install tcx

Standalone:

https://raw.github.com/mapbox/tcx/master/tcx.js

usage

var parse = require('tcx');
 
// a tcx file dom, via xmldom
parse(tcxDom);

api

parse(xmlDom)

Given a DOM of TCX data either as a browser DOM object or via xmldom or jsdom, parse and return a GeoJSON FeatureCollection object.

binary

npm install tcx -g

Usage with pipes:

$ tcx < tcxfile.tcx > geojsonfile.geojson

Or with filenames

$ tcx tcxfile.tcx anothertcxfile.tcx > output.geojson

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    14
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    14
  • 0.0.2
    0
  • 0.0.1
    0
  • 0.0.0
    1

Package Sidebar

Install

npm i tcx

Weekly Downloads

15

Version

0.1.0

License

BSD-2-Clause

Last publish

Collaborators

  • mapbox-admin