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.

56 lines
2.0 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Sitios d'obres",
  5. "cs": "Staveniště",
  6. "de": "Baustellen",
  7. "en": "Construction Sites",
  8. "fr": "Constructions",
  9. "hu": "Építési terület",
  10. "it": "Cantieri",
  11. "ja": "工事中",
  12. "nl": "Bouwterrein",
  13. "pt": "Locais de construção",
  14. "pt-br": "Terrenos vazios e obras",
  15. "ru": "Места строительства"
  16. },
  17. "query": {
  18. "13": [
  19. "(",
  20. "nwr[landuse~\"^(construction)$\"];",
  21. "nwr[highway~\"^(construction)$\"];",
  22. "nwr[railway~\"^(construction)$\"];",
  23. "nwr[building~\"^(construction)$\"];",
  24. "nwr[highway~\"^(construction)$\"];",
  25. "nwr[~\"^construction:\"~\".\"];",
  26. ")"
  27. ]
  28. },
  29. "feature": {
  30. "pre": [
  31. "{% set key = null %}{% set value = null %}",
  32. "{% if tags.highway == 'construction' %}",
  33. "{% set key = 'highway' %}",
  34. "{% set value = tags.construction|default('construction') %}",
  35. "{% elseif tags.railway == 'construction' %}",
  36. "{% set key = 'railway' %}",
  37. "{% set value = tags.construction|default('construction') %}",
  38. "{% elseif tags.building == 'construction' %}",
  39. "{% set key = 'building' %}",
  40. "{% set value = tags.construction|default('construction') %}",
  41. "{% elseif tags.landuse == 'construction' %}",
  42. "{% set key = 'landuse' %}",
  43. "{% set value = tags.construction|default('construction') %}",
  44. "{% else %}",
  45. "{% for k, v in tags %}",
  46. "{% set m = k|matches('^construction:(.*)$') %}",
  47. "{% if m %}",
  48. "{% set key = m[1] %}",
  49. "{% set value = v %}",
  50. "{{ debug(key, value) }}",
  51. "{% endif %}{% endfor %}",
  52. "{% endif %}"
  53. ],
  54. "description": "{{ tagTrans(key, value) }}"
  55. }
  56. }