From 065a582c3a6c89f6f1f9bc169b0ab73593db9765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 31 May 2020 07:16:17 +0200 Subject: [PATCH] Developments: split planning from construction, create new tree under infrastructure --- construction.json | 8 ++------ index.json | 14 +++++++++++++- planning.json | 20 ++++++++++++++++++++ 3 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 planning.json diff --git a/construction.json b/construction.json index 289d2dce..617eee27 100644 --- a/construction.json +++ b/construction.json @@ -17,12 +17,8 @@ "query": { "13": [ "(", - "node[landuse~\"^(brownfield|greenfield|construction|)$\"];", - "way[landuse~\"^(brownfield|greenfield|construction|)$\"];", - "relation[landuse~\"^(brownfield|greenfield|construction|)$\"];", - "node[highway~\"^(construction)$\"];", - "way[highway~\"^(construction)$\"];", - "relation[highway~\"^(construction)$\"];", + "nwr[landuse~\"^(construction)$\"];", + "nwr[highway~\"^(construction)$\"];", ")" ] }, diff --git a/index.json b/index.json index 4f651efd..53e4b8ae 100644 --- a/index.json +++ b/index.json @@ -266,7 +266,19 @@ "id": "agriculture" }, { - "id": "construction" + "id": "developments", + "type": "index", + "name": { + "en": "Planning and Construction" + }, + "subCategories": [ + { + "id": "construction" + }, + { + "id": "planning" + } + ] }, { "id": "military" diff --git a/planning.json b/planning.json new file mode 100644 index 00000000..8e961e15 --- /dev/null +++ b/planning.json @@ -0,0 +1,20 @@ +{ + "type": "overpass", + "name": { + "en": "Planning", + }, + "query": { + "13": [ + "(", + "nwr[landuse~\"^(brownfield|greenfield)$\"];", + ")" + ] + }, + "feature": { + "pre": [ + "{% set key = 'landuse' %}", + "{% set value = tags.landuse %}" + ], + "description": "{{ tagTrans(key, value) }} {{ key}} {{ value }}" + } +}