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.

48 lines
1.7 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_path' %}",
  36. " {{ tagTrans('amenity', 'public_path') }}",
  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 %}",
  41. "{{ tagTrans('leisure', tags.leisure) }}",
  42. "{% elseif tags.natural %}",
  43. "{{ tagTrans('natural', tags.natural) }}",
  44. "{% endif %}"
  45. ],
  46. "priority": "{% if tags.name %}0{% else %}1{% endif %}"
  47. }
  48. }