openstreetmap / id-tagging-schema

🆔🏷 The presets and other tagging data used by the iD editor
ISC License
155 stars 154 forks source link

Add `operator:type` to `highway`s #1304

Open tordans opened 1 month ago

tordans commented 1 month ago

The value operator:type=private is very useful on highway to indicate that a highway is not managed by the public administration but privately. Whenever I talk to administration staff, the question of who is in charge of a street comes up. For example as part of our https://parkraum.osm-verkehrswende.org/ parking project.

I think we should add it as a moreFields to the highway presets.

Wiki: https://wiki.openstreetmap.org/wiki/Key:operator:type

We have a field already https://github.com/openstreetmap/id-tagging-schema/blob/main/data/fields/operator/type.json but that is only visible when prerequisiteTag match, which does not work for this usecase.

Instead, I think we should test a toggle field that toggles between "nothing", "public" and "private" because that are the values I expect on this field in combination with highways.

In Germany, the combination of highway+operator:type is used 21k time https://taginfo.geofabrik.de/europe:germany/keys/operator%3Atype#combinations ~55k times worldwide https://taginfo.openstreetmap.org/keys/operator%3Atype#combinations

matkoniecz commented 1 month ago

though I guess that encouraging tagging operator:type=public on thousands of kilometers of ways is unlikely to be a good idea so this should not apply by default

Dimitar5555 commented 1 month ago

In Germany, the combination of highway+operator:type is used 21k time taginfo.geofabrik.de/europe:germany/keys/operator:type#combinations ~55k times worldwide taginfo.openstreetmap.org/keys/operator:type#combinations

In that case maybe the field should be regional?

tordans commented 1 month ago

The idea is, to have a field that is only visible when the data is already where or when a user actively looks for it (moreFields). Please find a possible implementation in the PR at https://github.com/openstreetmap/id-tagging-schema/pull/1310 which has screenshots and a preview.

We could make this a regional field, but I don't see why we should given that the concept of private roads (that are not access=private) should be present in multiple countries. And we want to use regional fields/presets as little as possible.

(Deleted my prev comments.)

Dimitar5555 commented 1 month ago

operator:type has 35k uses on way features (way[highway + operator:type]) and 90% of that usage is concentrated in 4 countries. The concept of private roads that are open to public usage likely exists in other countries, but most people (and likely mappers) won't bother to check it until the road gets closed for public usage (assuming there is a way to even check it).

Data as of 2024-08-10:

Country Count % of total
BR 10085 28.56%
DE 8653 24.50%
DK 8507 24.08%
AU 4300 12.17%
Rest of the world 3778 10.70%
Total 35323 100%
Overpass query > [out:json][timeout:120]; > > {{geocodeArea:"Brazil"}}->.BR; > {{geocodeArea:"Germany"}}->.DE; > {{geocodeArea:"Denmark"}}->.DK; > {{geocodeArea:"Australia"}}->.AU; > > way["operator:type"][highway]->.relevant_ways; > .relevant_ways out count; > way.relevant_ways(area.BR); > out count; > way.relevant_ways(area.DE); > out count; > way.relevant_ways(area.DK); > out count; > way.relevant_ways(area.AU); > out count;