westnordost / osm-legal-default-speeds

Infer default legal speed limits from OpenStreetMap tags
https://westnordost.github.io/osm-legal-default-speeds
BSD 3-Clause "New" or "Revised" License
21 stars 9 forks source link

Handle `source:maxspeed=DE:zone*` or `maxspeed:type=DE:zone*` #4

Closed tordans closed 2 years ago

tordans commented 2 years ago

In Germany, I noticed that some data has a source-tag but no explicit maxspeed tag.

This is the case for the value DE:rural (or urban) which are supported by the app for both variants

However, there is also a "zone" schema, that is not yet supported. In the time I invested to look into this I did not figure out why there are so many different ways to describe the same information (as far as I can tell), but I found multiple combinations of key and value with "zone" in it.

Taginfo:

Examples from the app:

There are some more variants in https://github.com/FixMyBerlin/osm-scripts/blob/main/utils/Highways-MaxspeedData/utils/addMaxspeedProperty.ts or https://github.com/FixMyBerlin/osm-scripts/blob/main/utils/Highways-MaxspeedData/utils/addMaxspeedSourceProperty.ts#L61-L73.


Suggestions on what to do with this…


PS: I hope, at some point someone will take the time to cleanup that tagging mess …

westnordost commented 2 years ago

DE:zone30 does not define an unsigned legal speed limit though, hence, interpreting this tag is out of scope of the "Default speed limits" wiki page and thus also this library:

It is signed, even explicitly with the proper maxspeed sign. According to taginfo, 99.64% of all roads tagged with DE:zone30 have a maxspeed=30 tagged, so if this explicit tag is missing, it really can be considered a tagging error..

westnordost commented 2 years ago

PS: I hope, at some point someone will take the time to cleanup that tagging mess …

Also, you forgot zone:maxspeed=DE:30 and zone:traffic=DE:zone30 🤣

tordans commented 2 years ago

Thanks for you input, westnordost! I agree with that. Also, your talk at SOTM 2022 helped to understand the tool more completely https://2022.stateofthemap.org/sessions/YWH3XD/