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.

28 lines
813 B

  1. {
  2. "type": "overpass",
  3. "query": {
  4. "15": [
  5. "(",
  6. "node[leisure];",
  7. "way[leisure];",
  8. "relation[leisure];",
  9. ")"
  10. ]
  11. },
  12. "feature": {
  13. "description": [
  14. "{% if tags.leisure == 'pitch' and tags.sport %}",
  15. " {% set pitchName = tagTransList('leisure=pitch sport', tags.sport) %}",
  16. "{% endif %}",
  17. "",
  18. "{% if pitchName and pitchName != tags.sport %}",
  19. " {{ pitchName }} ",
  20. "{% else %}",
  21. " {{ tagTrans('leisure', tags.leisure) }}",
  22. " {% if tags.leisure == 'pitch' and tags.sport %}",
  23. " - {{ tagTransList('sport', tags.sport) }}",
  24. " {% endif %}",
  25. "{% endif %}"
  26. ]
  27. }
  28. }