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

Add support to switch times of day in the UI #244

Closed ginnyTheCat closed 6 months ago

ginnyTheCat commented 6 months ago

Not sure whether this is in the scope of osm2streets. In tried it some days ago as a demo and it worked quite well, so before it rots in my local braches you can at least have a look at it.

A pedestrian tunnel below a train station closed at night: tunnel marked as no access

Open during the day: tunnel marked as cycleway

ginnyTheCat commented 6 months ago

It would take some work for the downstream app to know when to recalculate the network

On a pure lane by lane level that should be quite easy. opening-hours (as does opening-hours.js) provides us with an iterator over all changes that are happening from a point in time onwards. I was going to use that to build a similar iterator for the whole Conditionals allowing you to have different road networks for different time windows.