query 2 tags with OR statement
This is a basic question, but it got me confused and I really can'T find anything. I'm a beginner with OSM, though got a map running with queries etc, all working fine. The thing is this:
When working on a map which shows locations, I wanted to -for example- show vegan restaurants. Now there are a lot of different version tagged:
(EDIT: the option "diet:vegan" (yes, no, only) has the most places located, instead of the "diet"="vegan" used in my example)
`
place A - cuisine: vegan
place B - diet:vegan: yes
place C - diet:vegan
place D - cuisine: vegetarian,_vegan,_veggie_burger`
- If I use the basic query "cuisine=vegan" then result is only A.
- when "diet=vegan" result is only C.
- when going with a 'wildcard' ['cuisine'~'vegan',i] the result is only.. you guessed it.. A and D.
Now my main question is: Is there a simple OR operator to use? These didn't work:
['cuisine'~'vegan',i] | ['diet'~'vegan',i]
['cuisine'~'vegan',i | 'diet'~'vegan',i]
Then a not so important question/opinion left, but basically just to get more of in idea about the whole thing since I'll be needing it more with this project:
- What is the logic behind needing extra coding to find a tag that would be great to find with just one tag 'vegan' (result true or false) or something similar?
I've read the documents on language and tagging, key etc, though can't understand the reason behind it. Of course there are thousands of possibilities to tag and it's been doing pretty great so far considering the size of the community working on it, though wouldn't it be an improvement keeping things like this a bit more basic and avoiding -for this example- the tags 'diet', 'cuisine' and just leave the options 'vegan' as a tag itself (true/false), maybe with option to go 'vegan:only'?