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.

101 lines
3.9 KiB

{
"type": "overpass",
"name": {
"ast": "Serviciu Públicu",
"cs": "Veřejné služby",
"de": "Öffentliche Dienste",
"el": "Δημόσιες Υπηρεσίες",
"en": "Public Services",
"et": "Kommunaalteenused",
"fr": "Services et équipements publics",
"hu": "Közszolgáltatások",
"it": "Servizi pubblici",
"ja": "公共サービス",
"nl": "Openbare diensten",
"pt": "Serviços públicos",
"pt-br": "Utilidade pública",
"ro": "Servicii publice",
"ru": "Общественные места",
"uk": "Громадські місця"
},
"query": {
"12": [
"(",
"node[amenity~'^(embassy|public_building|townhall)$'];",
"way[amenity~'^(embassy|public_building|townhall)$'];",
"relation[amenity~'^(embassy|public_building|townhall)$'];",
"node[amenity=recycling][recyling_type=centre];",
"way[amenity=recycling][recyling_type=centre];",
"relation[amenity=recycling][recyling_type=centre];",
"nwr[office~\"^(government|administration)$\"];",
");"
],
"16": [
"(",
"node[amenity~'^(embassy|public_building|townhall|clock|drinking_water|recycling|toilets)$'];",
"way[amenity~'^(embassy|public_building|townhall|recycling|toilets)$'];",
"relation[amenity~'^(embassy|public_building|townhall|recycling|toilets)$'];",
"node[drinking_water];",
"nwr[office~\"^(government|administration)$\"];",
");"
]
},
"feature": {
"pre": [
"{% if tags.drinking_water %}",
"{% set key = 'amenity' %}",
"{% set value = 'drinking_water' %}",
"{% elseif tags.amenity %}",
"{% set key = 'amenity' %}",
"{% set value = tags.amenity %}",
"{% elseif tags.office %}",
"{% set key = 'office' %}",
"{% set value = tags.office %}",
"{% endif %}"
],
"title": "{{ tags.name|default(tags.operator)|default(tagTrans('amenity', value)) }}",
"description": [
"{% if key == 'office' %}",
" {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
"{% else %}",
" {{ tagTrans(key, value) }}",
"{% endif %}"
],
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
"markerSign": [
"{% set kv = key ~ '=' ~ value %}",
"{% if const[kv] %}",
"{{ const[kv]|raw }}",
"{% endif %}"
]
},
"info": [
"<table>",
"{% for value, sign in const %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>",
" <td>{{ tagTrans('amenity', value) }}</td>",
" </tr>",
"{% endfor %}",
"</table>"
],
"const": {
"amenity=clock": "<i class='fa fa-clock-o' aria-hidden='true'></i>",
"amenity=drinking_water": "<img data-src='maki:drinking-water'>",
"amenity=embassy": "<img data-src='maki:embassy'>",
"amenity=public_building": "<img data-src='maki:building'>",
"amenity=recycling": "<img data-src='maki:recycling'>",
"amenity=toilets": "<img data-src='maki:toilet'>",
"amenity=townhall": "<img data-src='maki:town-hall'>",
"office=administration": "<img data-src='maki:town-hall'>",
"office=government": "<img data-src='maki:town-hall'>"
},
"filter": {
"type": {
"name": "{{ trans('filter:type') }}",
"show_default": "true",
"type": "select",
"values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
}
}
}