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.

77 lines
2.4 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. }
  77. }