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.

55 lines
1.9 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[~\"^construction:\"~\".\"];",
  25. ")"
  26. ]
  27. },
  28. "feature": {
  29. "pre": [
  30. "{% set key = null %}{% set value = null %}",
  31. "{% if tags.highway == 'construction' %}",
  32. "{% set key = 'highway' %}",
  33. "{% set value = tags.construction|default('construction') %}",
  34. "{% elseif tags.railway == 'construction' %}",
  35. "{% set key = 'railway' %}",
  36. "{% set value = tags.construction|default('construction') %}",
  37. "{% elseif tags.building == 'construction' %}",
  38. "{% set key = 'building' %}",
  39. "{% set value = tags.construction|default('construction') %}",
  40. "{% elseif tags.landuse == 'construction' %}",
  41. "{% set key = 'landuse' %}",
  42. "{% set value = tags.construction|default('construction') %}",
  43. "{% else %}",
  44. "{% for k, v in tags %}",
  45. "{% set m = k|matches('^construction:(.*)$') %}",
  46. "{% if m %}",
  47. "{% set key = m[1] %}",
  48. "{% set value = v %}",
  49. "{{ debug(key, value) }}",
  50. "{% endif %}{% endfor %}",
  51. "{% endif %}"
  52. ],
  53. "description": "{{ tagTrans(key, value) }}"
  54. }
  55. }