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.

24 lines
1.1 KiB

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