a-b-street / osm2streets

Convert OSM to street networks with detailed geometry
https://a-b-street.github.io/osm2streets
Apache License 2.0
94 stars 8 forks source link

Publish osm2lanes NPM package #224

Open dabreegster opened 1 year ago

dabreegster commented 1 year ago

For @kfarr to try out in 3dstreet. Should be a JS API with OSM tags as input (just a string/string map) and JSON lane specifications (something like [{lane_type: "driving", width: 2.5, direction: "forward"}, ...]) as output.

dabreegster commented 12 months ago

@kfarr, this is on NPM and ready for you to use. You can open https://github.com/a-b-street/osm2streets/blob/main/osm2lanes-js/example.html in your browser and it should just work. (You have to save the raw file from GH, then open in your browser). There's some comments to hopefully make things clear, but the API isn't properly documented anywhere yet (and also it's subject to change of course). Hopefully it's enough to at least get started; please ping if you hit any problems

kfarr commented 11 months ago

Thanks @dabreegster for putting this together in such a fast amount of time. I'm sorry it will take me longer to digest this. We will be in touch when there's something to see.