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.

165 lines
6.2 KiB

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