You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.3 KiB
64 lines
2.3 KiB
{
|
|
"type": "overpass",
|
|
"name": {
|
|
"ast": "Sitios d'obres",
|
|
"ca": "Llocs en Construcció",
|
|
"cs": "Staveniště",
|
|
"de": "Baustellen",
|
|
"en": "Construction Sites",
|
|
"es": "Sitios de construcción",
|
|
"fr": "Chantiers de construction",
|
|
"gl": "Terreos baixo construción",
|
|
"hu": "Építési terület",
|
|
"it": "Cantieri",
|
|
"ja": "工事中",
|
|
"nb": "Konstruksjonsområde",
|
|
"nl": "Bouwterrein",
|
|
"oc": "Talhiers de construccion",
|
|
"pl": "Tereny budowy",
|
|
"pt": "Locais de construção",
|
|
"pt-br": "Terrenos vazios e obras",
|
|
"ro": "Șantiere",
|
|
"ru": "Места строительства",
|
|
"sr": "Градилишта",
|
|
"tr": "İnşaat Sahaları"
|
|
},
|
|
"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) }}"
|
|
}
|
|
}
|