0.1.0 • Published 10 years ago
tcx v0.1.0
tcx
Convert TCX files to GeoJSON in JavaScript.
installation
npm install tcxStandalone:
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 -gUsage with pipes:
$ tcx < tcxfile.tcx > geojsonfile.geojsonOr with filenames
$ tcx tcxfile.tcx anothertcxfile.tcx > output.geojson