From e60ac5a2f6f172db40229319751db830d0a6c5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 13 Aug 2017 15:48:03 +0200 Subject: [PATCH] gastro: convert to default json structure --- gastro.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gastro.json b/gastro.json index f016bed..41f87a2 100644 --- a/gastro.json +++ b/gastro.json @@ -1,4 +1,5 @@ { + "type": "overpass", "name": { "ast": "Gastronomía", "cs": "Stravování", @@ -15,9 +16,9 @@ "ru": "Общепит", "uk": "Гастрономія" }, - "type": "overpass", - "query": "(node[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];way[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];relation[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];);", - "minZoom": 16, + "query": { + "16": "(node[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];way[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];relation[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];);" + }, "feature": { "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 %}", "body": "{{ tagTrans('amenity', tags.amenity) }}
{{ keyTrans('cuisine') }}: {{ tagTransList('cuisine', tags.cuisine)|default(trans('unknown')) }}",