Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish osm2lanes NPM package #224

Open
1 of 3 tasks
dabreegster opened this issue Oct 3, 2023 · 2 comments
Open
1 of 3 tasks

Publish osm2lanes NPM package #224

dabreegster opened this issue Oct 3, 2023 · 2 comments

Comments

@dabreegster
Copy link
Contributor

dabreegster commented Oct 3, 2023

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.

  • Create osm2lanes-js and publish to NPM
  • Clean up the hasty refactor, possibly having a crate in the osm2streets repo with base types
  • Stop re-exporting types from osm2streets crate?
@dabreegster
Copy link
Contributor Author

@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
Copy link

kfarr commented Oct 14, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants