Main categories of OpenStreetBrowser with public transport zoom level
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.

129 lines
3.8 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. },
  45. "filter": {
  46. "access": {
  47. "name": "{{ keyTrans('access') }}",
  48. "type": "select",
  49. "show_default": "true",
  50. "placeholder": "{{ trans(\"tag:access!=private\") }}",
  51. "valueName": "{{ tagTrans(\"access\", value) }}",
  52. "values": {
  53. "*": {
  54. "name": "{{ trans('any value') }}",
  55. "query": "nwr",
  56. "weight": -1
  57. },
  58. "yes": {},
  59. "private": {},
  60. "permissive": {},
  61. "customers": {},
  62. "discouraged": {},
  63. "unknown": {
  64. "name": "{{ trans(\"unknown\") }}",
  65. "query": "(nwr[\"access\"=\"unknown\"];nwr[!access];)",
  66. "weight": 1
  67. },
  68. "?": {
  69. "name": "{{ trans(\"other\") }}",
  70. "query": "nwr[access][\"access\"!~\"^(public|private|permissive|customers|discouraged|unknown|yes)$\"]",
  71. "weight": 1
  72. }
  73. },
  74. "emptyQuery": "nwr[\"access\"!=\"private\"]"
  75. },
  76. "leisure": {
  77. "name": "{{ trans('filter:type') }}",
  78. "type": "select",
  79. "values": "{% set list = [] %}{% for k 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>",
  80. "sort": "natsort",
  81. "op": "has"
  82. }
  83. },
  84. "const": [
  85. "adult_gaming_centre",
  86. "amusement_arcade",
  87. "bandstand",
  88. "beach_resort",
  89. "bird_hide",
  90. "bleachers",
  91. "bowling_alley",
  92. "common",
  93. "dance",
  94. "disc_golf_course",
  95. "dog_park",
  96. "escape_game",
  97. "firepit",
  98. "fishing",
  99. "fitness_centre",
  100. "fitness_station",
  101. "garden",
  102. "golf_course",
  103. "hackerspace",
  104. "horse_riding",
  105. "ice_rink",
  106. "indoor_play",
  107. "marina",
  108. "miniature_golf",
  109. "nature_reserve",
  110. "outdoor_seating",
  111. "park",
  112. "picnic_table",
  113. "pitch",
  114. "playground",
  115. "sauna",
  116. "slipway",
  117. "sport",
  118. "sports_cenre",
  119. "sports_hall",
  120. "stadium",
  121. "summer_camp",
  122. "swimming_area",
  123. "swimming_pool",
  124. "track",
  125. "trampoline_park",
  126. "water_park",
  127. "wildlife_hide"
  128. ]
  129. }