forked from plepe/openstreetbrowser-categories-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proposals.json
45 lines (45 loc) · 1.53 KB
/
proposals.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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('proposed') %}",
"{% elseif tags.railway == 'proposed' %}",
"{% set key = 'railway' %}",
"{% set value = tags.proposed|default('proposed') %}",
"{% elseif tags.building == 'proposed' %}",
"{% set key = 'building' %}",
"{% set value = tags.proposed|default('proposed') %}",
"{% elseif tags.landuse == 'proposed' %}",
"{% set key = 'landuse' %}",
"{% set value = tags.proposed|default('proposed') %}",
"{% 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) }}"
}
}