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.

28 lines
1.3 KiB

  1. {
  2. "type": "overpass",
  3. "query": {
  4. "8": "nwr[heritage~\"^(|.*;)1(|;.*)$\"];",
  5. "11": "nwr[heritage~\"^(|.*;)(1|2)(|;.*)$\"];",
  6. "13": "nwr[heritage];"
  7. },
  8. "feature": {
  9. "description": [
  10. "{% set found = false %}",
  11. "{% 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 %}",
  12. " {% if attribute(tags, k) and attribute(tags, k) != 'yes' %}",
  13. " {{ tagTransList(k, attribute(tags, k)) }}",
  14. " {% set found = true %}",
  15. " {% endif %}",
  16. "{% endfor %}",
  17. "{% if found %}{# nothing #}",
  18. "{% elseif tags.building and tags.building != 'yes' %}",
  19. "{{ tagTransList('building', tags.building) }}",
  20. "{% elseif tags.historic and tags.historic not in ['heritage', 'yes', 'building'] %}",
  21. "{{ tagTransList('historic', tags.historic) }}",
  22. "{% elseif tags.building == 'yes' or tags.historic == 'building' %}",
  23. "{{ keyTrans('building') }}",
  24. "{% endif %}"
  25. ],
  26. "priority": "{{ min(tags.heritage|split(\";\")) }}"
  27. }
  28. }