4.0.0 • Published 7 months ago
@furkot/import-gpx v4.0.0
@furkot/import-gpx
Import GPX for Furkot
Install
$ npm install --save @furkot/import-gpxUsage
Use as a transform stream: pipe network responses, files etc. and listen on data event.
import furkotImportGpx from '@furkot/import-gpx';
const { body } = await fetch('https://example.com/my.gpx');
const from = body.pipeThrough(new TextDecoderStream());
const trip = await furkotImportGpx(from);
console.log(trip);License
MIT © Damian Krzeminski