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.

64 lines
2.3 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Sitios d'obres",
  5. "ca": "Llocs en Construcció",
  6. "cs": "Staveniště",
  7. "de": "Baustellen",
  8. "en": "Construction Sites",
  9. "es": "Sitios de construcción",
  10. "fr": "Chantiers de construction",
  11. "gl": "Terreos baixo construción",
  12. "hu": "Építési terület",
  13. "it": "Cantieri",
  14. "ja": "工事中",
  15. "nb": "Konstruksjonsområde",
  16. "nl": "Bouwterrein",
  17. "oc": "Talhiers de construccion",
  18. "pl": "Tereny budowy",
  19. "pt": "Locais de construção",
  20. "pt-br": "Terrenos vazios e obras",
  21. "ro": "Șantiere",
  22. "ru": "Места строительства",
  23. "sr": "Градилишта",
  24. "tr": "İnşaat Sahaları"
  25. },
  26. "query": {
  27. "13": [
  28. "(",
  29. "nwr[landuse~\"^(construction)$\"];",
  30. "nwr[highway~\"^(construction)$\"];",
  31. "nwr[railway~\"^(construction)$\"];",
  32. "nwr[building~\"^(construction)$\"];",
  33. "nwr[~\"^construction:\"~\".\"];",
  34. ")"
  35. ]
  36. },
  37. "feature": {
  38. "pre": [
  39. "{% set key = null %}{% set value = null %}",
  40. "{% if tags.highway == 'construction' %}",
  41. "{% set key = 'highway' %}",
  42. "{% set value = tags.construction|default('construction') %}",
  43. "{% elseif tags.railway == 'construction' %}",
  44. "{% set key = 'railway' %}",
  45. "{% set value = tags.construction|default('construction') %}",
  46. "{% elseif tags.building == 'construction' %}",
  47. "{% set key = 'building' %}",
  48. "{% set value = tags.construction|default('construction') %}",
  49. "{% elseif tags.landuse == 'construction' %}",
  50. "{% set key = 'landuse' %}",
  51. "{% set value = tags.construction|default('construction') %}",
  52. "{% else %}",
  53. "{% for k, v in tags %}",
  54. "{% set m = k|matches('^construction:(.*)$') %}",
  55. "{% if m %}",
  56. "{% set key = m[1] %}",
  57. "{% set value = v %}",
  58. "{{ debug(key, value) }}",
  59. "{% endif %}{% endfor %}",
  60. "{% endif %}"
  61. ],
  62. "description": "{{ tagTrans(key, value) }}"
  63. }
  64. }