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.

133 lines
5.1 KiB

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