geojson-linestring-concat
Concatenate GeoJSON LineStrings as much as possible.
Install
- Install with npm:
npm install geojson-linestring-concat
. - Install with yarn:
yarn add geojson-linestring-concat
.
Usage
const data = type: 'LineString' coordinates: 00 00 10 10 20 20 type: 'LineString' coordinates: 20 20 30 30 const result = console
outputs
type: 'LineString' coordinates: 0 0 1 1 2 2 3 3