Skip to content

mapbox/geojson-segment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geojson-segment

build status

split a geojson file generated by togeojson into two-vertex chunks with properties

segment

Given a GeoJSON produced by toGeoJSON from GPX, split LineString geometries into two-vertex linestrings with properties of heartRate and time before & after.

Parameters

parameter type description
geojson Object a GeoJSON FeatureCollection object output by toGeoJSON

Returns Object, a GeoJSON FeatureCollection of two-vertex linestrings

Installation

Requires nodejs.

$ npm install @mapbox/geojson-segment

Tests

$ npm test

About

No description or website provided.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published