From 8b022fee133e6c67f3596f9545b07a2f381012d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 22 Oct 2018 21:45:41 +0200 Subject: [PATCH] Gastro: improve filters --- gastro.json | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/gastro.json b/gastro.json index 869a352..1ff2c2d 100644 --- a/gastro.json +++ b/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 %}" }, "filter": { - "name": { - "toCheck": [ "name", "operator", "amenity" ], - "name": "tag:name", - "type": "text", - "op": "strsearch" - }, "amenity": { + "name": "{{ keyTrans('amenity') }}", "type": "select", "values": [ "bar", @@ -61,18 +56,24 @@ "cafe", "fast_food", "ice_cream", - "pub" + "pub", + "restaurant" ], + "valueName": "{{ tagTrans('amenity', value) }}", "op": "=" }, "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" ], + "valueName": "{{ tagTrans('cuisine', value) }}", "op": "has" }, "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" ], + "valueName": "{{ keyTrans(value) }}", "op": "has_key_value" } }