# mapbox_tcx **Repository Path**: mirrors-gis/mapbox_tcx ## Basic Information - **Project Name**: mapbox_tcx - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tcx Convert [TCX](https://en.wikipedia.org/wiki/Training_Center_XML) files to [GeoJSON](http://geojson.org/) in JavaScript. ## installation npm install tcx Standalone: https://raw.github.com/mapbox/tcx/master/tcx.js ## usage ```js 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