Browse Source

Gastro: improve filters

filter
parent
commit
37ba1c9eef
  1. 19
      gastro.json

19
gastro.json

@ -47,13 +47,8 @@
"markerSign": "{% if tags.amenity=='bar' %}🍸{% elseif tags.amenity=='biergarten'%}🍻{% elseif tags.amenity=='cafe' %}☕{% elseif tags.amenity=='fast_food' %}🍔{% elseif tags.amenity=='ice_cream' %}🍨{% elseif tags.amenity=='pub' %}🍺{% else %}🍴{% endif %}" "markerSign": "{% if tags.amenity=='bar' %}🍸{% elseif tags.amenity=='biergarten'%}🍻{% elseif tags.amenity=='cafe' %}☕{% elseif tags.amenity=='fast_food' %}🍔{% elseif tags.amenity=='ice_cream' %}🍨{% elseif tags.amenity=='pub' %}🍺{% else %}🍴{% endif %}"
}, },
"filter": { "filter": {
"name": {
"toCheck": [ "name", "operator", "amenity" ],
"name": "tag:name",
"type": "text",
"op": "strsearch"
},
"amenity": { "amenity": {
"name": "{{ keyTrans('amenity') }}",
"type": "select", "type": "select",
"values": [ "values": [
"bar", "bar",
@ -61,18 +56,24 @@
"cafe", "cafe",
"fast_food", "fast_food",
"ice_cream", "ice_cream",
"pub"
"pub",
"restaurant"
], ],
"valueName": "{{ tagTrans('amenity', value) }}",
"op": "=" "op": "="
}, },
"cuisine": { "cuisine": {
"type": "autocomplete",
"name": "{{ keyTrans('cuisine') }}",
"type": "select",
"values": [ "afghan", "arab", "asian", "australian", "austrian", "barbecue", "burger", "cake", "caribbean", "caribean", "chinese", "coffee", "coffee_shop", "crepe", "empanada", "fish_and_chips", "french", "fried_food", "friture", "greek", "gyros", "ice_cream", "indian", "international", "italian", "japanese", "juice", "kebab", "korean", "local", "mexican", "noodles", "pasta", "pie", "pizza", "regional", "salad", "sandwich", "sausage", "seafood", "soup", "spanish", "steak_house", "sushi", "thai", "turkish", "vegan", "vegetarian", "vietnamese" ], "values": [ "afghan", "arab", "asian", "australian", "austrian", "barbecue", "burger", "cake", "caribbean", "caribean", "chinese", "coffee", "coffee_shop", "crepe", "empanada", "fish_and_chips", "french", "fried_food", "friture", "greek", "gyros", "ice_cream", "indian", "international", "italian", "japanese", "juice", "kebab", "korean", "local", "mexican", "noodles", "pasta", "pie", "pizza", "regional", "salad", "sandwich", "sausage", "seafood", "soup", "spanish", "steak_house", "sushi", "thai", "turkish", "vegan", "vegetarian", "vietnamese" ],
"valueName": "{{ tagTrans('cuisine', value) }}",
"op": "has" "op": "has"
}, },
"diet": { "diet": {
"type": "autocomplete",
"name": "{{ keyTrans('diet') }}",
"type": "select",
"values": [ "diet:vegan", "diet:vegetarian", "diet:pescetarian", "diet:lacto_vegetarian", "diet:ovo_vegetarian", "diet:fruitarian", "diet:raw", "diet:gluten_free", "diet:dairy_free", "diet:lactose_free", "diet:halal", "diet:kosher" ], "values": [ "diet:vegan", "diet:vegetarian", "diet:pescetarian", "diet:lacto_vegetarian", "diet:ovo_vegetarian", "diet:fruitarian", "diet:raw", "diet:gluten_free", "diet:dairy_free", "diet:lactose_free", "diet:halal", "diet:kosher" ],
"valueName": "{{ keyTrans(value) }}",
"op": "has_key_value" "op": "has_key_value"
} }
} }

Loading…
Cancel
Save