forked from OpenStreetBrowser/main
Browse Source
Merge branch 'master' of https://weblate.openstreetbrowser.org/git/openstreetbrowser/main-categories
master
Merge branch 'master' of https://weblate.openstreetbrowser.org/git/openstreetbrowser/main-categories
master
Stephan Bösch-Plepelits
3 years ago
28 changed files with 251 additions and 88 deletions
-
15buildings-height.json
-
18buildings-start_date.json
-
14car_amenities.json
-
3car_maxspeed.json
-
2car_routes.json
-
37communication.json
-
3culture_religion.json
-
6cycle_amenities.json
-
48cycle_routes.json
-
14detailsBody.html
-
1gastro.json
-
28heritage.json
-
48hiking_routes.json
-
1lang/de.json
-
1lang/en.json
-
2mtb-routes.json
-
7natural.json
-
14popupBody.html
-
2power_routes.json
-
26pt.json
-
1public.json
-
11railway-electrification.json
-
5railway-gauge.json
-
2railway-infrastructure.json
-
2railway-routes.json
-
8religion.json
-
14sport.json
-
6swimming_bathing.json
@ -0,0 +1,28 @@ |
|||||
|
{ |
||||
|
"type": "overpass", |
||||
|
"query": { |
||||
|
"8": "nwr[heritage~\"^(|.*;)1(|;.*)$\"];", |
||||
|
"11": "nwr[heritage~\"^(|.*;)(1|2)(|;.*)$\"];", |
||||
|
"13": "nwr[heritage];" |
||||
|
}, |
||||
|
"feature": { |
||||
|
"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') }}", |
||||
|
"{% endif %}" |
||||
|
], |
||||
|
"priority": "{{ min(tags.heritage|split(\";\")) }}" |
||||
|
} |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue