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.

134 lines
5.1 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Schwimmen und Baden",
  5. "en": "Swimming and bathing",
  6. "fr": "Natation/Baignade/Bains"
  7. },
  8. "query": {
  9. "13": [
  10. "(",
  11. "nwr[leisure=swimming_area];",
  12. "nwr[natural~\"^(water)\"][sport~\"^(|.*;)swimming(.*|)$\"];",
  13. "nwr[natural~\"^(beach)\"];",
  14. "nwr[leisure~\"^(water_park|beach_resort)$\"];",
  15. "nwr[leisure=sports_centre][sport~\"^(|.*;)swimming(.*|)$\"];",
  16. "nwr[amenity=public_bath];",
  17. "nwr[tourism=spa_resort];",
  18. ")"
  19. ],
  20. "16": [
  21. "(",
  22. "nwr[leisure=swimming_area];",
  23. "nwr[natural~\"^(water)\"][sport~\"^(|.*;)swimming(.*|)$\"];",
  24. "nwr[natural~\"^(beach)\"];",
  25. "nwr[leisure~\"^(water_park|beach_resort)$\"];",
  26. "nwr[leisure=sports_centre][sport~\"^(|.*;)swimming(;.*|)$\"];",
  27. "nwr[amenity=public_bath];",
  28. "nwr[tourism=spa_resort];",
  29. "",
  30. "nwr[leisure=swimming_pool][access!=private];",
  31. "nwr[leisure=sauna];",
  32. ")"
  33. ]
  34. },
  35. "feature": {
  36. "pre": [
  37. "{% set k = null %}{% set v = null %}{% set append = null %}",
  38. "{% if tags.amenity == 'public_bath' %}",
  39. " {% set k = 'amenity' %}",
  40. " {% set v = 'public_bath' %}",
  41. " {% if attribute(tags, 'bath:type') %}{% set append = tagTrans('bath:type', attribute(tags, 'bath:type')) %}{% endif %}",
  42. "{% elseif tags.tourism == 'spa_resort' %}",
  43. " {% set k = 'tourism' %}",
  44. " {% set v = tags.tourism %}",
  45. "{% elseif tags.leisure == 'sauna' %}",
  46. " {% set k = 'leisure' %}",
  47. " {% set v = tags.leisure %}",
  48. " {% if tags.sauna and tags.sauna != 'yes' %}{% set append = tagTransList('sauna', tags.sauna) %}{% endif %}",
  49. "{% elseif tags.leisure == 'sports_centre' %}",
  50. " {% set k = 'leisure' %}",
  51. " {% set v = tags.leisure %}",
  52. " {% set append = tagTrans('sport', 'swimming') %}",
  53. "{% elseif tags.leisure %}",
  54. " {% set k = 'leisure' %}",
  55. " {% set v = tags.leisure %}",
  56. "{% elseif tags.natural %}",
  57. " {% set k = 'natural' %}",
  58. " {% set v = tags.natural %}",
  59. " {% if tags.sport %}{% set append = tagTrans('sport', 'swimming') %}{% endif %}",
  60. "{% endif %}"
  61. ],
  62. "description": [
  63. "{{ tagTrans(k, v) }}",
  64. "{% if append %}({{ append }}){% endif %}"
  65. ],
  66. "markerSign": "{{ const[k ~ '=' ~ v].sign|raw }}",
  67. "priority": "{% if tags.name %}0{% else %}1{% endif %}"
  68. },
  69. "info": [
  70. "<table>",
  71. "{% for value, data in const %}",
  72. "{% if data.zoom <= map.zoom %}",
  73. " <tr>",
  74. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  75. " <td title=\"{% if data.taginfo %}{{ data.taginfo }}{% else %}{{ value }}{% endif %}\">",
  76. " {{ keyTrans(value) }}",
  77. " {% if data.append %}({{ trans(data.append) }}){% endif %}",
  78. " </td>",
  79. " </tr>",
  80. "{% endif %}",
  81. "{% endfor %}",
  82. "</table>"
  83. ],
  84. "const": {
  85. "leisure=swimming_area": {
  86. "zoom": 13,
  87. "sign": "<img data-src='maki:swimming?size=11&fill=blue'>"
  88. },
  89. "leisure=water_park": {
  90. "zoom": 13,
  91. "sign": "<img data-src='maki:swimming'>"
  92. },
  93. "leisure=beach_resort": {
  94. "zoom": 13,
  95. "sign": "<img data-src='temaki:beach'>"
  96. },
  97. "leisure=sports_centre": {
  98. "zoom": 13,
  99. "append": "tag:sport=swimming",
  100. "taginfo": "leisure=swimming_area, sport=swimming",
  101. "sign": "<img data-src='maki:basketball'>"
  102. },
  103. "natural=water": {
  104. "zoom": 13,
  105. "append": "tag:sport=swimming",
  106. "taginfo": "natural=water, sport=swimming",
  107. "sign": "<i style='color: blue' class=\"fas fa-water\"></i>"
  108. },
  109. "natural=beach": {
  110. "zoom": 13,
  111. "sign": "<img data-src='temaki:beach?fill=green'>"
  112. },
  113. "amenity=public_bath": {
  114. "zoom": 13,
  115. "taginfo": "amenity=public_bath, bath:type=*",
  116. "sign": "<i class=\"fa fa-bath\" style='color: black' aria-hidden=\"true\"></i>"
  117. },
  118. "tourism=spa_resort": {
  119. "zoom": 13,
  120. "sign": "<i class=\"fa fa-bath\" style='color: blue' aria-hidden=\"true\"></i>"
  121. },
  122. "leisure=swimming_pool": {
  123. "zoom": 16,
  124. "append": "tag:access!=private",
  125. "taginfo": "leisure=swimming_pool, access!=private",
  126. "sign": "<i style='font-size: 80%; color: black;' class='fas fa-swimming-pool'></i>"
  127. },
  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. }
  133. }
  134. }