forked from plepe/openstreetbrowser-categories-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstruction.json
55 lines (55 loc) · 1.93 KB
/
construction.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
46
47
48
49
50
51
52
53
54
55
{
"type": "overpass",
"name": {
"ast": "Sitios d'obres",
"cs": "Staveniště",
"de": "Baustellen",
"en": "Construction Sites",
"fr": "Constructions",
"hu": "Építési terület",
"it": "Cantieri",
"ja": "工事中",
"nl": "Bouwterrein",
"pt": "Locais de construção",
"pt-br": "Terrenos vazios e obras",
"ru": "Места строительства"
},
"query": {
"13": [
"(",
"nwr[landuse~\"^(construction)$\"];",
"nwr[highway~\"^(construction)$\"];",
"nwr[railway~\"^(construction)$\"];",
"nwr[building~\"^(construction)$\"];",
"nwr[~\"^construction:\"~\".\"];",
")"
]
},
"feature": {
"pre": [
"{% set key = null %}{% set value = null %}",
"{% if tags.highway == 'construction' %}",
"{% set key = 'highway' %}",
"{% set value = tags.construction|default('construction') %}",
"{% elseif tags.railway == 'construction' %}",
"{% set key = 'railway' %}",
"{% set value = tags.construction|default('construction') %}",
"{% elseif tags.building == 'construction' %}",
"{% set key = 'building' %}",
"{% set value = tags.construction|default('construction') %}",
"{% elseif tags.landuse == 'construction' %}",
"{% set key = 'landuse' %}",
"{% set value = tags.construction|default('construction') %}",
"{% else %}",
"{% for k, v in tags %}",
"{% set m = k|matches('^construction:(.*)$') %}",
"{% if m %}",
"{% set key = m[1] %}",
"{% set value = v %}",
"{{ debug(key, value) }}",
"{% endif %}{% endfor %}",
"{% endif %}"
],
"description": "{{ tagTrans(key, value) }}"
}
}