Does any formal definition of a postfix to a key exist?

A prefix in prefix:key like in abandoned:shop tells something about the
state for the key.

In a proposal like camp_site:restaurant=yes it means that restaurant
belongs to camping (a kind of site relation in a line).

In practice in this example

tourism=camp_site

camp_site:restaurant=yes

camp_site:bar=yes


would be the same as

tourism=camp_site

restaurant=yes

bar=yes


You need such a construction if you want to give additional information
about  the attribute, for example

tourism=camp_site

restaurant:opening_hours=18:00-22:00

bar:opening_hours=17:00-24:00


It is a way to use existing definitions of attributes (like opening hours
for restaurant) for multiple namespace keys on a single node.
amenity=restaurant;bar doesn't allow this.


It is a clean solution, but I haven't found osm suffixes are set up this
way.

As far as I have seen osm doesn't treat postfixes in a special way:
peanut:butter is parsed the same way as peanut_butter, in other words the
complete key peanut:butter has to be defined, unlike abandoned:shop with
separate definitions for abandoned and shop. Correct?


info/tagging <https://lists.openstreetmap.org/listinfo/tagging>
>
_______________________________________________
Tagging mailing list
Tagging@openstreetmap.org
https://lists.openstreetmap.org/listinfo/tagging

Reply via email to