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.
 
 

38 lines
1.4 KiB

type: overpass
query:
14: nwr[~"^fixme(:.*|)$"~".",i]
feature:
pre: |
{% set fixme = tags.fixme %}
{% set category = null %}
{% if not fixme %}
{% for k, v in tags %}
{% set m = k|matches('^fixme(:(.*))?$', 'i') %}
{% if m %}
{% set fixme = v %}
{% endif %}
{% endfor %}
{% endif %}
details: |
{{ fixme }}
description: |
{% set found = false %}
{% 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 %}
{% if attribute(tags, k) and attribute(tags, k) != 'yes' %}
{{ tagTransList(k, attribute(tags, k)) }}
{% set found = true %}
{% endif %}
{% endfor %}
{% if found %}{# nothing #}
{% elseif tags.building and tags.building != 'yes' %}
{{ tagTransList('building', tags.building) }}
{% elseif tags.historic and tags.historic not in ['heritage', 'yes', 'building'] %}
{{ tagTransList('historic', tags.historic) }}
{% elseif tags.building == 'yes' or tags.historic == 'building' %}
{{ keyTrans('building') }}
{% elseif tags.boundary %}
{{ tagTrans('boundary', tags.boundary) }}
{% endif %}
body: |
{{ fixme == 'yes' ? keyTrans('fixme') : fixme }}