Browse Source

gastro: improve diet filter

pedestrian
parent
commit
091b41df4d
  1. 20
      gastro.json
  2. 3
      lang/de.json

20
gastro.json

@ -46,6 +46,7 @@
],
"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 %}"
},
"info": "{{ repoTrans('Objects with diet information') }}",
"filter": {
"amenity": {
"name": "{{ keyTrans('amenity') }}",
@ -89,7 +90,24 @@
"diet": {
"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": {
"*": {
"name": "{{ repoTrans('Objects with diet information') }}",
"query": "nwr[~\"^diet:\"~\".\"]"
},
"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"
}

3
lang/de.json

@ -68,5 +68,6 @@
"category:waste": "Entsorgung",
"category:water": "Gewässer",
"category:wikipedia": "Wikipedia",
"category:works": "Fabriken"
"category:works": "Fabriken",
"Objects with diet information": "Objekte mit Ernährungsinformationen"
}
Loading…
Cancel
Save