geojson-split-crossing-lines
Turn a GeoJSON FeatureCollection of crossing lines into a clean network dataset.
npm install geojson-split-crossing-lines --save
const splitLines = ;const fs = promises; ; { // load and parse GeoJSON LineString dataset const geo_raw = await fs; const geo = JSON; const split = ; await fs;}
For more information, please see my blog post; Cleaning a GeoJSON Network.