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.

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