Import KML files into Furkot road trip planner.
$ npm install --save furkot-import-kml
Use with a web transform stream: pipe network responses, files etc.
import furkotImportKml from '@furkot/import-kml';
const { body } = await fetch('https://example.com/my.kml');
const from = body.pipeThrough(new TextDecoderStream());
const trip = await furkotImportKml(from);
console.log(trip);
MIT © Damian Krzeminski