Browse Source

Construction: add proposals and developable_areas

pedestrian
parent
commit
d194b16814
  1. 4
      developable_areas.json
  2. 5
      index.json
  3. 45
      proposals.json

4
planning.json → developable_areas.json

@ -1,7 +1,7 @@
{
"type": "overpass",
"name": {
"en": "Planning",
"en": "Developable Areas"
},
"query": {
"13": [
@ -15,6 +15,6 @@
"{% set key = 'landuse' %}",
"{% set value = tags.landuse %}"
],
"description": "{{ tagTrans(key, value) }} {{ key}} {{ value }}"
"description": "{{ tagTrans(key, value) }}"
}
}

5
index.json

@ -276,7 +276,10 @@
"id": "construction"
},
{
"id": "planning"
"id": "proposals"
},
{
"id": "developable_areas"
}
]
},

45
proposals.json

@ -0,0 +1,45 @@
{
"type": "overpass",
"name": {
"en": "Proposals"
},
"query": {
"13": [
"(",
"nwr[landuse~\"^(proposed)$\"];",
"nwr[highway~\"^(proposed)$\"];",
"nwr[railway~\"^(proposed)$\"];",
"nwr[building~\"^(proposed)$\"];",
"nwr[highway~\"^(proposed)$\"];",
"nwr[~\"^proposed:\"~\".\"];",
")"
]
},
"feature": {
"pre": [
"{% set key = null %}{% set value = null %}",
"{% if tags.highway == 'proposed' %}",
"{% set key = 'highway' %}",
"{% set value = tags.proposed|default('construction') %}",
"{% elseif tags.railway == 'proposed' %}",
"{% set key = 'railway' %}",
"{% set value = tags.proposed|default('construction') %}",
"{% elseif tags.building == 'proposed' %}",
"{% set key = 'building' %}",
"{% set value = tags.proposed|default('construction') %}",
"{% elseif tags.landuse == 'proposed' %}",
"{% set key = 'landuse' %}",
"{% set value = tags.proposed|default('construction') %}",
"{% else %}",
"{% for k, v in tags %}",
"{% set m = k|matches('^proposed:(.*)$') %}",
"{% if m %}",
"{% set key = m[1] %}",
"{% set value = v %}",
"{{ debug(key, value) }}",
"{% endif %}{% endfor %}",
"{% endif %}"
],
"description": "{{ tagTrans(key, value) }}"
}
}
Loading…
Cancel
Save