Robinlovelace / reallocated-oneways

Place to identify and explore interventions in which one way streets for motor traffic were created by removing a motor vehicle lane, creating more space for active travel
Creative Commons Zero v1.0 Universal
1 stars 1 forks source link

Can we identify these from OSM? #1

Open Robinlovelace opened 1 year ago

Robinlovelace commented 1 year ago

My guess: yes, but may not be easy. Heads-up @publichealthdatageek and @rogerbeecham discussed today. My fave example of this was when they removed a lane from Torrington Place, how did this look in OSM around 2016 before it went in?

https://www.openstreetmap.org/edit?way=681757489#map=20/51.52149/-0.13479

image

dabreegster commented 1 year ago

As a very first cut, you could look for ways that went from oneway=no or a lack of a oneway tag entirely to oneway=yes. Then filter for ways that had changes to any key with the substring cycleway. Manually check some examples and go from there. I'd guess ohsome is the best place to start for looking for changed tags over time.

This approach will only work for cycleways tagged as attributes of the main road. Eventually osm2streets could help you get the "entire" picture of a road, including separate cycletracks.

Also, you won't have a reliable way of distinguishing someone updating OSM tagging to reflect reality from updating in response to something newly built.

Robinlovelace commented 1 year ago

My thinking on approach:

  1. Search for oneway streets in OSM, easy with oneway=yes
  2. Download historic versions of the data (know how to do this with Geofabrik but not other methods so this possibly the hardest step)
  3. Check if the route was one way, either by looking at OSM tags (I don't think we need oneway=no, just absence of the tag implies 2 way I believe) or routing with OSRM or similar (probably not needed and only shows what OSM shows so that is not looking like a strong option now, unlike at 11:30 this morning after strong coffee!)
dabreegster commented 1 year ago

For step 2, I thought ohsome might help with this kind of thing? Not sure though. As a very slow backup plan, there's a direct API call to get all versions of a way. But you should throttle how quickly you call this. https://wiki.openstreetmap.org/wiki/API_v0.6#History:_GET_/api/0.6/[node|way|relation]/#id/history

For step 3, look for absence of the tag or oneway=no explicitly. The latter is done 4 million times right now. https://taginfo.openstreetmap.org/keys/oneway#values

Robinlovelace commented 1 year ago

This is great input Dustin, many thanks :+1: