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.

125 lines
4.5 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Swimming and bathing",
  5. "de": "Schwimmen und Baden"
  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>{{ keyTrans(value) }} {% if data.append %}({{ trans(data.append) }}){% endif %}</td>",
  75. " </tr>",
  76. "{% endif %}",
  77. "{% endfor %}",
  78. "</table>"
  79. ],
  80. "const": {
  81. "leisure=swimming_area": {
  82. "zoom": 13,
  83. "sign": "<img data-src='maki:swimming?size=11&fill=blue'>"
  84. },
  85. "leisure=water_park": {
  86. "zoom": 13,
  87. "sign": "<img data-src='maki:swimming'>"
  88. },
  89. "leisure=beach_resort": {
  90. "zoom": 13,
  91. "sign": "<img data-src='temaki:beach'>"
  92. },
  93. "leisure=sports_centre": {
  94. "zoom": 13,
  95. "append": "tag:sport=swimming",
  96. "sign": "<img data-src='maki:basketball'>"
  97. },
  98. "natural=water": {
  99. "zoom": 13,
  100. "append": "tag:sport=swimming",
  101. "sign": "<img data-src='maki:swimming?fill=blue'>"
  102. },
  103. "natural=beach": {
  104. "zoom": 13,
  105. "sign": "<img data-src='temaki:beach?fill=green'>"
  106. },
  107. "amenity=public_bath": {
  108. "zoom": 13,
  109. "sign": "<i class=\"fa fa-bath\" style='color: black' aria-hidden=\"true\"></i>"
  110. },
  111. "tourism=spa_resort": {
  112. "zoom": 13,
  113. "sign": "<i class=\"fa fa-bath\" style='color: blue' aria-hidden=\"true\"></i>"
  114. },
  115. "leisure=swimming_pool": {
  116. "zoom": 16,
  117. "append": "tag:access!=private",
  118. "sign": "<img data-src='maki:swimming?size=11'>"
  119. },
  120. "leisure=sauna": {
  121. "zoom": 16,
  122. "sign": "<i class=\"fa fa-thermometer-full\" aria-hidden=\"true\"></i>"
  123. }
  124. }
  125. }