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.

105 lines
3.2 KiB

  1. type: overpass
  2. name:
  3. ast: Serviciu Públicu
  4. ca: Serveis Públics
  5. cs: Veřejné služby
  6. de: Öffentliche Dienste
  7. el: Δημόσιες Υπηρεσίες
  8. en: Public Services
  9. es: Servicios públicos
  10. et: Kommunaalteenused
  11. fr: Services et équipements publics
  12. gl: Servizos públicos
  13. hu: Közszolgáltatások
  14. it: Servizi pubblici
  15. ja: 公共サービス
  16. nb: Offentlige tjenester
  17. nl: Openbare diensten
  18. oc: Servicis e equimaments publics
  19. pl: Usługi publiczne
  20. pt: Serviços públicos
  21. pt-br: Utilidade pública
  22. ro: Servicii publice
  23. ru: Общественные места
  24. sr: Јавне службе
  25. tr: Kamu Hizmetleri
  26. uk: Громадські місця
  27. query:
  28. 12: |-
  29. (
  30. nwr[amenity~'^(.*;|)(embassy|public_building|townhall)(;.*|)$'];
  31. nwr[amenity=recycling][recyling_type=centre];
  32. nwr[office~"^(.*;|)(government|administration)(;.*|)$"];
  33. );
  34. 16: |-
  35. (
  36. nwr[amenity~'^(.*;|)(embassy|public_building|townhall|clock|drinking_water|recycling|toilets)(;.*|)$'];
  37. node[drinking_water][drinking_water!=no];
  38. nwr[office~"^(.*;|)(government|administration)(;.*|)$"];
  39. );
  40. feature:
  41. pre: |-
  42. {% set key = null %}
  43. {% set value = null %}
  44. {% if tags.drinking_water and tags.drinking_water != 'no' %}
  45. {% set key = 'amenity' %}
  46. {% set value = 'drinking_water' %}
  47. {% endif %}
  48. {% for k, d in const %}
  49. {% set kv = k|split('=') %}
  50. {% if attribute(tags, kv[0]) and kv[1] in attribute(tags, kv[0])|split(';') %}
  51. {% set key = kv[0] %}
  52. {% set value = kv[1] %}
  53. {% endif %}
  54. {% endfor %}
  55. description: |-
  56. {% if key == 'office' %}
  57. {{ keyTrans('office') }} ({{ tagTransList('office', tags.office) }})
  58. {% elseif value == 'drinking_water' %}
  59. {{ tagTrans(key, value) }}
  60. {% else %}
  61. {{ tagTransList(key, attribute(tags, key)) }}
  62. {% endif %}
  63. body: '{% if tags.operator %}{{ keyTrans("operator") }}: {{ tags.operator }}<br/>{% endif %}'
  64. markerSign: |-
  65. {% set kv = key ~ '=' ~ value %}
  66. {% if const[kv] %}
  67. {{ const[kv]|raw }}
  68. {% endif %}
  69. info: |-
  70. <table>
  71. {% for value, sign in const %}
  72. <tr>
  73. <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>
  74. <td>{{ tagTrans('amenity', value) }}</td>
  75. </tr>
  76. {% endfor %}
  77. </table>
  78. const:
  79. amenity=clock: <i class='fa fa-clock-o' aria-hidden='true'></i>
  80. amenity=drinking_water: <img data-src='maki:drinking-water'>
  81. amenity=embassy: <img data-src='maki:embassy'>
  82. amenity=public_building: <img data-src='maki:building'>
  83. amenity=recycling: <img data-src='maki:recycling'>
  84. amenity=toilets: <img data-src='maki:toilet'>
  85. amenity=townhall: <img data-src='maki:town-hall'>
  86. office=administration: <img data-src='maki:town-hall'>
  87. office=government: <img data-src='maki:town-hall'>
  88. filter:
  89. type:
  90. name: '{{ trans("filter:type") }}'
  91. show_default: 'true'
  92. type: select
  93. values: |-
  94. {% for k, v in const %}
  95. {% if k == 'amenity=drinking_water' %}
  96. <option value="{{ k }}" query="(nwr[dringing_water];nwr[amenity^drinking_water];)">
  97. {% else %}
  98. <option value="{{ k }}" query="nwr[{{ k|replace({ '=': '^' }) }}]">
  99. {% endif %}
  100. {{ tagTrans(k) }}
  101. </option>
  102. {% endfor %}