You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a valid json for a quest definition and furthermore are the filters combined with OR, XOR or AND?
My expectation how this definition is that it will show me all amenity=bicycle_rental and bicycle_rental=docking_station which are not containing a value for the capacity Is that true?
and again these are all combined with AND, which is probably not what you want. To get the OR result you want you'll have to write two different quests. (However, looking at this I realize that the code could probably be made smart enough to notice that the tagKeys array lists both the items you're filtering on, which means that you want to set both of those keys and they should probably use an OR. Let me work on that!)
Moving on, what is the exception? There are situations where using AND doesn't make any sense and we can conclude that OR is necessary. If you have a key duplicated using an = relation with different values then using AND will never be true, so we infer that it is an OR:
amenity=cafe
amenity=restaurant
website=
In this situation the amenity values would be ORs, and the result of that would be AND everything else.
Except there's exception to this exception! We only convert multiple values to OR when the relation is =. If the relation is ≠ then it's non-sensical to use OR (because it would always be true):
Because I am willing to dig deeper into Go Map!! as tool for mapping to go, I kinda want to know how the Quest implementation is working:
First Case
Is this a valid json for a quest definition and furthermore are the filters combined with OR, XOR or AND?
My expectation how this definition is that it will show me all
amenity=bicycle_rental
andbicycle_rental=docking_station
which are not containing a value for thecapacity
Is that true?Second Case
Will this pop up if one of the values is set? Or have to be both empty?
Thanks in advance. May some day I will master swift and unterstand the implementation ^^
The text was updated successfully, but these errors were encountered: