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.

141 lines
4.5 KiB

  1. type: overpass
  2. name:
  3. ca: Natació i bany
  4. cs: Koupání
  5. de: Schwimmen und Baden
  6. en: Swimming and bathing
  7. es: Natación y baño
  8. fr: Natation, baignade et bains
  9. gl: Natación e baño
  10. hu: Fürdőzés, úszás
  11. it: Nuoto e balneazione
  12. ja: 水泳と入浴
  13. nb: Svømming og bading
  14. nl: Zwemmen en baden
  15. oc: Natacion, banhada e banhèra
  16. pl: Pływanie i kąpiele
  17. pt: Natação e banho
  18. pt-br: Natação e banho
  19. ru: Бассейны и сауны
  20. sr: Пливање и купање
  21. tr: Yüzme ve banyo yapma
  22. query:
  23. 13: |-
  24. (
  25. nwr[leisure=swimming_area];
  26. nwr[natural~"^(water)"][sport~"^(|.*;)swimming(;.*|)$"];
  27. nwr[natural~"^(beach)"];
  28. nwr[leisure~"^(water_park|beach_resort)$"];
  29. nwr[leisure=sports_centre][sport~"^(|.*;)swimming(;.*|)$"];
  30. nwr[amenity=public_bath];
  31. nwr[tourism=spa_resort];
  32. )
  33. 16: |-
  34. (
  35. nwr[leisure=swimming_area];
  36. nwr[natural~"^(water)"][sport~"^(|.*;)swimming(;.*|)$"];
  37. nwr[natural~"^(beach)"];
  38. nwr[leisure~"^(water_park|beach_resort)$"];
  39. nwr[leisure=sports_centre][sport~"^(|.*;)swimming(;.*|)$"];
  40. nwr[amenity~"^(public_bath|shower)$"];
  41. nwr[tourism=spa_resort];
  42. nwr[leisure=swimming_pool][access!=private];
  43. nwr[leisure=sauna];
  44. )
  45. feature:
  46. pre: |-
  47. {% set k = null %}{% set v = null %}{% set append = null %}
  48. {% if tags.amenity == 'public_bath' %}
  49. {% set k = 'amenity' %}
  50. {% set v = 'public_bath' %}
  51. {% if attribute(tags, 'bath:type') %}{% set append = tagTrans('bath:type', attribute(tags, 'bath:type')) %}{% endif %}
  52. {% elseif tags.amenity == 'shower' %}
  53. {% set k = 'amenity' %}
  54. {% set v = 'shower' %}
  55. {% elseif tags.tourism == 'spa_resort' %}
  56. {% set k = 'tourism' %}
  57. {% set v = tags.tourism %}
  58. {% elseif tags.leisure == 'sauna' %}
  59. {% set k = 'leisure' %}
  60. {% set v = tags.leisure %}
  61. {% if tags.sauna and tags.sauna != 'yes' %}{% set append = tagTransList('sauna', tags.sauna) %}{% endif %}
  62. {% elseif tags.leisure == 'sports_centre' %}
  63. {% set k = 'leisure' %}
  64. {% set v = tags.leisure %}
  65. {% set append = tagTrans('sport', 'swimming') %}
  66. {% elseif tags.leisure %}
  67. {% set k = 'leisure' %}
  68. {% set v = tags.leisure %}
  69. {% elseif tags.natural %}
  70. {% set k = 'natural' %}
  71. {% set v = tags.natural %}
  72. {% if tags.sport %}{% set append = tagTrans('sport', 'swimming') %}{% endif %}
  73. {% endif %}
  74. description: |-
  75. {{ tagTrans(k, v) }}
  76. {% if append %}({{ append }}){% endif %}
  77. markerSign: '{{ const[k ~ "=" ~ v].sign|raw }}'
  78. priority: '{% if tags.name %}0{% else %}1{% endif %}'
  79. info: |-
  80. <table>
  81. {% for value, data in const %}
  82. {% if data.zoom <= map.zoom %}
  83. <tr>
  84. <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>
  85. <td title="{% if data.taginfo %}{{ data.taginfo }}{% else %}{{ value }}{% endif %}">
  86. {{ keyTrans(value) }}
  87. {% if data.append %}({{ trans(data.append) }}){% endif %}
  88. </td>
  89. </tr>
  90. {% endif %}
  91. {% endfor %}
  92. </table>
  93. const:
  94. leisure=swimming_area:
  95. zoom: 13
  96. sign: <img data-src='maki:swimming?size=11&fill=blue'>
  97. leisure=water_park:
  98. zoom: 13
  99. sign: <img data-src='maki:swimming'>
  100. leisure=beach_resort:
  101. zoom: 13
  102. sign: <img data-src='temaki:beach'>
  103. leisure=sports_centre:
  104. zoom: 13
  105. append: tag:sport=swimming
  106. taginfo: leisure=swimming_area, sport=swimming
  107. sign: <img data-src='maki:basketball'>
  108. natural=water:
  109. zoom: 13
  110. append: tag:sport=swimming
  111. taginfo: natural=water, sport=swimming
  112. sign: '<i style="color: blue" class="fas fa-water"></i>'
  113. natural=beach:
  114. zoom: 13
  115. sign: <img data-src='temaki:beach?fill=green'>
  116. amenity=public_bath:
  117. zoom: 13
  118. taginfo: amenity=public_bath, bath:type=*
  119. sign: '<i class="fa fa-bath" style="color: black" aria-hidden="true"></i>'
  120. tourism=spa_resort:
  121. zoom: 13
  122. sign: '<i class="fa fa-bath" style="color: blue" aria-hidden="true"></i>'
  123. leisure=swimming_pool:
  124. zoom: 16
  125. append: tag:access!=private
  126. taginfo: leisure=swimming_pool, access!=private
  127. sign: '<i style="font-size: 80%; color: black;" class="fas fa-swimming-pool"></i>'
  128. leisure=sauna:
  129. zoom: 16
  130. taginfo: leisure=sauna, sauna:type=*
  131. sign: <i class="fa fa-thermometer-full" aria-hidden="true"></i>
  132. amenity=shower:
  133. zoom: 16
  134. sign: '🚿 '
  135. filter:
  136. type:
  137. name: '{{ trans("filter:type") }}'
  138. type: select
  139. show_default: 'true'
  140. values: '{% for k, v in const %}<option value="{{ k }}" query="nwr[{{ k }}]" minzoom="{{ v.zoom }}">{{ tagTrans(k) }}</option>{% endfor %}'