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.

51 lines
1.9 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. "description": [
  35. "{% if tags.amenity == 'public_bath' %}",
  36. "{{ tagTrans('amenity', 'public_bath' ) }}",
  37. "{% if attribute(tags, 'bath:type') %}({{ tagTrans('bath:type', attribute(tags, 'bath:type')) }}){% endif %}",
  38. "{% elseif tags.tourism == 'spa_resort' %}",
  39. "{{ tagTrans('tourism', tags.tourism ) }}",
  40. "{% elseif tags.leisure == 'sauna' %}",
  41. " {{ tagTrans('leisure', 'sauna') }}",
  42. " {% if tags.sauna and tags.sauna != 'yes' %}({{ tagTransList('sauna', tags.sauna) }}){% endif %}",
  43. "{% elseif tags.leisure %}",
  44. "{{ tagTrans('leisure', tags.leisure) }}",
  45. "{% elseif tags.natural %}",
  46. "{{ tagTrans('natural', tags.natural) }}",
  47. "{% endif %}"
  48. ],
  49. "priority": "{% if tags.name %}0{% else %}1{% endif %}"
  50. }
  51. }