Main categories of OpenStreetBrowser
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.

34 lines
1.3 KiB

  1. type: overpass
  2. name:
  3. ca: Protecció del Patrimoni
  4. de: Denkmalschutz
  5. en: Heritage Protection
  6. fr: Protection patrimoniale
  7. hu: Örökségvédelem
  8. it: Protezione del patrimonio
  9. pl: Ochrona dziedzictwa
  10. pt: Património cultural
  11. pt-br: Patrimônio histórico
  12. tr: Kültürel Miras
  13. query:
  14. 8: nwr[heritage~"^(|.*;)1(|;.*)$"];
  15. 11: nwr[heritage~"^(|.*;)(1|2)(|;.*)$"];
  16. 13: nwr[heritage];
  17. feature:
  18. description: |-
  19. {% set found = false %}
  20. {% for k in ['amenity', 'shop', 'telecom', 'waterway', 'craft', 'highway', 'railway', 'aerialway', 'emergency', 'geological', 'man_made', 'natural', 'office', 'power', 'aeroway', 'tourism', 'leisure', 'military', 'landuse', 'barrier', 'route'] if not found %}
  21. {% if attribute(tags, k) and attribute(tags, k) != 'yes' %}
  22. {{ tagTransList(k, attribute(tags, k)) }}
  23. {% set found = true %}
  24. {% endif %}
  25. {% endfor %}
  26. {% if found %}{# nothing #}
  27. {% elseif tags.building and tags.building != 'yes' %}
  28. {{ tagTransList('building', tags.building) }}
  29. {% elseif tags.historic and tags.historic not in ['heritage', 'yes', 'building'] %}
  30. {{ tagTransList('historic', tags.historic) }}
  31. {% elseif tags.building == 'yes' or tags.historic == 'building' %}
  32. {{ keyTrans('building') }}
  33. {% endif %}
  34. priority: '{{ min(tags.heritage|split(";")) }}'