Main categories of OpenStreetBrowser with support for whitewater
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
4.2 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Recréu",
  5. "cs": "Volný čas",
  6. "de": "Freizeit",
  7. "el": "Αναψυχή",
  8. "en": "Leisure",
  9. "fr": "Loisirs",
  10. "hu": "Szabadidő",
  11. "it": "Tempo libero",
  12. "ja": "レジャー",
  13. "nl": "Vrije tijd",
  14. "pt": "Lazer",
  15. "pt-br": "Lazer",
  16. "ro": "Timp liber",
  17. "ru": "Досуг",
  18. "uk": "Дозвілля"
  19. },
  20. "query": {
  21. "15": [
  22. "(",
  23. "node[leisure];",
  24. "way[leisure];",
  25. "relation[leisure];",
  26. ")"
  27. ]
  28. },
  29. "feature": {
  30. "description": [
  31. "{% if tags.leisure == 'pitch' and tags.sport %}",
  32. " {% set pitchName = tagTransList('leisure=pitch sport', tags.sport) %}",
  33. "{% endif %}",
  34. "",
  35. "{% if pitchName and pitchName != tags.sport %}",
  36. " {{ pitchName }} ",
  37. "{% else %}",
  38. " {{ tagTrans('leisure', tags.leisure) }}",
  39. " {% if tags.leisure == 'pitch' and tags.sport %}",
  40. " - {{ tagTransList('sport', tags.sport) }}",
  41. " {% endif %}",
  42. "{% endif %}"
  43. ],
  44. "markerSign": "{{ const[tags.leisure]|raw }}"
  45. },
  46. "filter": {
  47. "access": {
  48. "name": "{{ keyTrans('access') }}",
  49. "type": "select",
  50. "show_default": "true",
  51. "placeholder": "{{ trans(\"tag:access!=private\") }}",
  52. "valueName": "{{ tagTrans(\"access\", value) }}",
  53. "values": {
  54. "*": {
  55. "name": "<{{ trans('any value') }}>",
  56. "query": "nwr",
  57. "weight": -1
  58. },
  59. "yes": {},
  60. "private": {},
  61. "permissive": {},
  62. "customers": {},
  63. "discouraged": {},
  64. "unknown": {
  65. "name": "{{ trans(\"unknown\") }}",
  66. "query": "nwr[\"access\"=\"unknown\"]"
  67. },
  68. "!": {
  69. "name": "<{{ trans('empty value') }}>",
  70. "query": "nwr[!access]",
  71. "weight": 1
  72. },
  73. "?": {
  74. "name": "<{{ trans(\"other\") }}>",
  75. "query": "nwr[access][\"access\"!~\"^(public|private|permissive|customers|discouraged|unknown|yes)$\"]",
  76. "weight": 2
  77. }
  78. },
  79. "emptyQuery": "nwr[\"access\"!=\"private\"]"
  80. },
  81. "leisure": {
  82. "name": "{{ trans('filter:type') }}",
  83. "type": "select",
  84. "values": "{% set list = [] %}{% for k, v in const %}<option value=\"{{ k }}\">{% set list = list|merge([ k ]) %}{{ tagTrans('leisure', k) }}</option>{% endfor %}<option weight='1' value='other' query='nwr[leisure][leisure!~\"^(|.*;)({{ list|join('|') }})(|;.*)$\"]'>{{ trans('other') }}</option>",
  85. "sort": "natsort",
  86. "op": "has"
  87. }
  88. },
  89. "const": {
  90. "adult_gaming_centre": "",
  91. "amusement_arcade": "",
  92. "bandstand": ":",
  93. "beach_resort": "",
  94. "bird_hide": "",
  95. "bleachers": "",
  96. "bowling_alley": "",
  97. "common": "",
  98. "dance": "",
  99. "disc_golf_course": "",
  100. "dog_park": "",
  101. "escape_game": "",
  102. "firepit": "",
  103. "fishing": "",
  104. "fitness_centre": "",
  105. "fitness_station": "",
  106. "garden": "",
  107. "golf_course": "",
  108. "hackerspace": "",
  109. "horse_riding": "",
  110. "ice_rink": "",
  111. "indoor_play": "",
  112. "marina": "",
  113. "miniature_golf": "",
  114. "nature_reserve": "",
  115. "outdoor_seating": "",
  116. "park": "P",
  117. "picnic_table": "<img data-src='maki:picnic-site'>",
  118. "pitch": "",
  119. "playground": "⛹",
  120. "sauna": "",
  121. "slipway": "",
  122. "sport": "",
  123. "sports_cenre": "",
  124. "sports_hall": "",
  125. "stadium": "",
  126. "summer_camp": "",
  127. "swimming_area": "",
  128. "swimming_pool": "",
  129. "track": "",
  130. "trampoline_park": "",
  131. "water_park": "",
  132. "wildlife_hide": ""
  133. }
  134. }