From c830277979656f777a7563e8b24cc4ea12c6ce40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Tue, 1 Aug 2017 09:25:50 +0200 Subject: [PATCH] Category 'natural' --- index.json | 3 +++ natural.json | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/index.json b/index.json index 87f23e1..ef8e072 100644 --- a/index.json +++ b/index.json @@ -193,6 +193,9 @@ }, { "id": "places" + }, + { + "id": "natural" } ] } diff --git a/natural.json b/natural.json index 3676b76..40c8997 100644 --- a/natural.json +++ b/natural.json @@ -12,5 +12,16 @@ "nl": "Natuurlijke Formaties", "ru": "Природные образования", "uk": "Природне середовище" + }, + "type": "overpass", + "query": { + "9": "(node[natural~\"^(peak|volcano|];)", + "16": "(node[natural];way[natural];relation[natural];)", + "13": "(\nnode[natural~\"^(peak|volcano|wood|scrub|heath|grassland|fell|bare_rock|scree|shingle|sand|mud|water|wetland|glacier|bay|cape|beach|coastline|spring|hot_spring|geyser|valley|ridge|arete|cliff|saddle|rock|stone|sinkhole|cave_entrance)$\"];\nway[natural~\"^(peak|volcano|wood|scrub|heath|grassland|fell|bare_rock|scree|shingle|sand|mud|water|wetland|glacier|bay|cape|beach|coastline|spring|hot_spring|geyser|valley|ridge|arete|cliff|saddle|rock|stone|sinkhole|cave_entrance)$\"];\nrelation[natural~\"^(peak|volcano|wood|scrub|heath|grassland|fell|bare_rock|scree|shingle|sand|mud|water|wetland|glacier|bay|cape|beach|coastline|spring|hot_spring|geyser|valley|ridge|arete|cliff|saddle|rock|stone|sinkhole|cave_entrance)$\"];\n)" + }, + "feature": { + "title": "{{ localizedTag(tags, 'name') | default(trans('unnamed')) }}\n{% if tags.natural == 'peak' and tags.ele %}({{ tags.ele }}m){% endif %}", + "description": "{{ tagTrans('natural', tags.natural) }}", + "body": "{{ tagTrans('natural', tags.natural) }}" } }