<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Marc, there was a discussion about multi-valued keys earlier this year, perhaps there is something in there to build upon. IIRC cuisine was one of the specific examples mentioned.</p>
<p><a href="https://lists.openstreetmap.org/pipermail/tagging/2016-January/028320.html">https://lists.openstreetmap.org/pipermail/tagging/2016-January/028320.html</a></p>
<p><a href="http://wiki.openstreetmap.org/wiki/Proposed_features/Multivalued_Keys">http://wiki.openstreetmap.org/wiki/Proposed_features/Multivalued_Keys</a></p>
<p>Regards,</p>
<p>Colin</p>
<div> </div>
<p> </p>
<p>On 2016-08-24 22:06, Marc Zoutendijk wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">How to tag multiple values for a key? The cuisine problem.<br /><br /> Whenever we tag a restaurant, we also have the option of tagging the kind/style of food that is offered:<br /><br /> amenity=restaurant<br /> cuisine=french<br /><br /> The wiki is clear about this:<br /><a href="http://wiki.openstreetmap.org/wiki/Key:cuisine">http://wiki.openstreetmap.org/wiki/Key:cuisine</a><br /><br /> In the next table I have collected all the values for cuisine that were in use at least 100 times.<br /><a href="http://mijndev.openstreetmap.nl/~marczoutendijk/taginfo-cuisine-proper.html">http://mijndev.openstreetmap.nl/~marczoutendijk/taginfo-cuisine-proper.html</a><br /><br /> Problems arise whenever the choices for food/cuisine are not easy to state with one value, like when we have a restaurant that is both serving french and italian food.<br /> In the above table, we see the solution that is used often when there exist more values at the same time for a given key: separate the values by semicolons. *[<a href="http://www.openstreetmap.org/user/marczoutendijk/diary/35478">1</a>]<br /> This way is also used often for all aother keys that can have multiple values.<br /> This problem of multiple values for one key has been discussed by me in a few diary entries. *[<a href="http://www.openstreetmap.org/user/marczoutendijk/diary/35532">2</a>]*[<a href="http://www.openstreetmap.org/user/marczoutendijk/diary/35512">3</a>]<br /><br /> Using the same key more than once?<br /> We cannot put:<br /><br /> amenity=restaurant<br /> cuisine=french<br /> cuisine=italian<br /><br /> into OSM, because you cannot use the same key twice on the same node. If you try to do that in iD it comes up with cuisine_1 for the second choice.<br /> That is odd, because it should have named it cuisine_2 in the first place, because cuisine_1 is the default first one, that now has the tag cuisine=*. <br /> Very confusing to have cuisine=* for the first one and cuisine_1=* for the second one!<br /> Because iD is the default editor, many beginning mappers use it and aren't even aware of this problem and simply accept what iD offers.<br /><br /> When you enter a new value for a given key in JOSM or try to add an existing key again, it simply removes the other one.<br /><br /> To examine the various ways of tagging this cuisine=* I have taken all the related values from the taginfo database (date 2016-08-05) and put them in various tables.<br /><br /> In the next table you can see _all_ the values that are currently use for the "underscore" (the iD method) namespace:<br /><a href="http://mijndev.openstreetmap.nl/~marczoutendijk/taginfo-cuisine-underscore.html">http://mijndev.openstreetmap.nl/~marczoutendijk/taginfo-cuisine-underscore.html</a><br /><br /> There is a third method that mappers use to solve the problem:<br /><br /> amenity=restaurant<br /> cuisine=french<br /> cuisine:2=italian<br /><br /> or for the italian choice:<br /> cuisine:italian=yes<br /><br /> This way is also referred to as namespace tagging and in this table you see _all_ the values currently in use according to this method:<br /><a href="http://mijndev.openstreetmap.nl/~marczoutendijk/taginfo-cuisine-colon.html">http://mijndev.openstreetmap.nl/~marczoutendijk/taginfo-cuisine-colon.html</a><br /> In this table we sometimes see that the value is still a multiple value list, separated by semicolons.<br /><br /> More problematic (to me) is the use of:<br /><br /> cuisine:XX=value where XX is the iso countrycode.<br /> What is the purpose of using that code in relation to the food being served?<br /> Or is it a way of saying that the language in use for the value is given in that XX?<br /><br /> Finally I collected a few rare values:<br /><a href="http://mijndev.openstreetmap.nl/~marczoutendijk/taginfo-cuisine-rare.html">http://mijndev.openstreetmap.nl/~marczoutendijk/taginfo-cuisine-rare.html</a><br /><br /> "Rare" in the sense that they are few but contain extremely long lists of ";" separated values or are in a different script without noting so in the cuisine:XX key.<br /><br /> A problem is that the wiki doesn't mention any of these cases.<br /> I would like your opinion on which way we should deal with those issues. Mappers have come up (as can be learned from my tables) with a choice of solutions, but it is (at least) a confusing situation.<br /> If this has been (most likely) discussed before, then there is nothing of that discussion to be found in the mentioned wiki.<br /><br /> Marc<br /><br /><br /> =========<br /> [1]<a href="http://www.openstreetmap.org/user/marczoutendijk/diary/35478">http://www.openstreetmap.org/user/marczoutendijk/diary/35478</a><br /> [2]<a href="http://www.openstreetmap.org/user/marczoutendijk/diary/35532">http://www.openstreetmap.org/user/marczoutendijk/diary/35532</a><br /> [3]<a href="http://www.openstreetmap.org/user/marczoutendijk/diary/35512">http://www.openstreetmap.org/user/marczoutendijk/diary/35512</a><br /><br /><br /><br /> _______________________________________________<br /> Tagging mailing list<br /><a href="mailto:Tagging@openstreetmap.org">Tagging@openstreetmap.org</a><br /><a href="https://lists.openstreetmap.org/listinfo/tagging">https://lists.openstreetmap.org/listinfo/tagging</a></div>
</blockquote>
</body></html>