# geojson-segment **Repository Path**: mirrors_mapbox/geojson-segment ## Basic Information - **Project Name**: geojson-segment - **Description**: No description available - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-10-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # geojson-segment [![build status](https://secure.travis-ci.org/mapbox/geojson-segment.png)](http://travis-ci.org/mapbox/geojson-segment) split a geojson file generated by togeojson into two-vertex chunks with properties ### `segment` Given a [GeoJSON](http://geojson.org/) produced by [toGeoJSON](https://github.com/mapbox/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](http://nodejs.org/). ```sh $ npm install @mapbox/geojson-segment ``` ## Tests ```sh $ npm test ```