Create offset GeoJSON LineString features (lanes) based on an OSM way (road)
npm install laneifyLaneify
=======
npm install laneifyjs
var laneify = require('laneify')var offset = 1 // The geographical distance to offset by (in WGS84 coordinate space)
var road = require('./validGeoJSONWay.json')
var lanes = laneify.split(road, { laneOffset: offset })
`$3
You can specify particular OSM highway types that you only want to split:
`js
var lanes = laneify.split(road, { highwayTypes: ['primary', 'secondary'] })
``