Open Robinlovelace opened 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.
My thinking on approach:
oneway=yes
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!)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
This is great input Dustin, many thanks :+1:
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