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.
55 lines
1.8 KiB
55 lines
1.8 KiB
{
|
|
"type": "overpass",
|
|
"name": {
|
|
"ca": "Propostes",
|
|
"en": "Proposals",
|
|
"fr": "Propositions",
|
|
"hu": "Tervezett objektumok",
|
|
"it": "Proposte",
|
|
"ja": "提案",
|
|
"oc": "Propositions",
|
|
"pl": "Propozycje",
|
|
"pt": "Propostas",
|
|
"pt-br": "Planejados",
|
|
"tr": "Teklifler"
|
|
},
|
|
"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) }}"
|
|
}
|
|
}
|