split a geojson file generated by togeojson into two-vertex chunks with properties
Given a GeoJSON produced by toGeoJSON from GPX, split LineString geometries into two-vertex linestrings with properties of heartRate and time before & after.
parameter | type | description |
---|---|---|
geojson |
Object | a GeoJSON FeatureCollection object output by toGeoJSON |
Returns Object
, a GeoJSON FeatureCollection of two-vertex linestrings
Requires nodejs.
$ npm install @mapbox/geojson-segment
$ npm test