acteng / cyclability

Ideas, code, and example datasets to estimate cyclability
MIT License
0 stars 0 forks source link

Exploratory web app #6

Open dabreegster opened 1 year ago

dabreegster commented 1 year ago

I've started https://github.com/dabreegster/osm2svelte/blob/main/src/lib/modes/RouteProfileMode.svelte in an existing project to explore routing cost functions. (As soon as the Github outage is over, there'll be a deployed link to play with.) You can import any area from Overpass using osm2streets. Then per road segment (edge in the graph), the raw OSM tags (including highway) and processed lane list are available. Those're fed into a calculateWeight function, which returns a rating in [0.0, 1.0]. (Right now it just does something trivial as an example)

The intention is to use this to interactively explore different routing cost functions. Some ideas for next steps (perfectly sized for a one-day hackathon!!):

This is effectively a web-based revival of a very old idea, https://github.com/a-b-street/abstreet/issues/237

dabreegster commented 1 year ago

Finally got it deployed: https://dabreegster.github.io/osm2svelte Import somewhere, then use the 4th tab