[Tagging] RFC - proposal page for camp_site=
Jan van Bekkum
jan.vanbekkum at gmail.com
Tue Mar 31 19:13:03 UTC 2015
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>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tagging/attachments/20150331/2a600c74/attachment-0001.html>
More information about the Tagging
mailing list