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.

133 lines
4.9 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Basures",
  5. "cs": "Nakládání s odpady",
  6. "de": "Entsorgung",
  7. "en": "Disposal",
  8. "fr": "Déchets/Recyclage",
  9. "hu": "Hulladék",
  10. "it": "Smaltimento",
  11. "ja": "処理場",
  12. "nl": "Afvalverwijdering",
  13. "pt": "Lixo",
  14. "pt-br": "Lixo",
  15. "ru": "Переработка отходов"
  16. },
  17. "query": {
  18. "13": [
  19. "(",
  20. "node[landuse=landfill];",
  21. "node[man_made~\"^(wastewater_plant|incinerator)$\"];",
  22. "node[amenity=recycling][recycling_type=centre];",
  23. "way[landuse=landfill];",
  24. "way[man_made~\"^(wastewater_plant|incinerator)$\"];",
  25. "way[amenity=recycling][recycling_type=centre];",
  26. "relation[landuse=landfill];",
  27. "relation[man_made~\"^(wastewater_plant|incinerator)$\"];",
  28. "relation[amenity=recycling][recycling_type=centre];",
  29. "nwr[power=generator][\"generator:source\"~\"^(.*;|)waste(;.*|)$\"];",
  30. ")"
  31. ],
  32. "15": [
  33. "(",
  34. "node[landuse=landfill];",
  35. "node[man_made~\"^(wastewater_plant|incinerator)$\"];",
  36. "node[amenity=recycling];",
  37. "way[landuse=landfill];",
  38. "way[man_made~\"^(wastewater_plant|incinerator)$\"];",
  39. "way[amenity=recycling];",
  40. "relation[landuse=landfill];",
  41. "relation[man_made~\"^(wastewater_plant|incinerator)$\"];",
  42. "relation[amenity=recycling];",
  43. "nwr[power=generator][\"generator:source\"~\"^(.*;|)waste(;.*|)$\"];",
  44. ")"
  45. ],
  46. "18": [
  47. "(",
  48. "node[landuse=landfill];",
  49. "node[man_made~\"^(wastewater_plant|incinerator)$\"];",
  50. "node[amenity~\"^(recycling|waste_basket)$\"];",
  51. "way[landuse=landfill];",
  52. "way[man_made~\"^(wastewater_plant|incinerator)$\"];",
  53. "way[amenity=recycling];",
  54. "relation[landuse=landfill];",
  55. "relation[man_made~\"^(wastewater_plant|incinerator)$\"];",
  56. "relation[amenity=recycling];",
  57. "nwr[power=generator][\"generator:source\"~\"^(.*;|)waste(;.*|)$\"];",
  58. ")"
  59. ]
  60. },
  61. "feature": {
  62. "pre": [
  63. "{% set add = '' %}",
  64. "{% if tags.landuse == 'landfill' %}",
  65. " {% set key = 'landuse' %}",
  66. " {% set value = tags.landuse %}",
  67. "{% elseif tags.man_made in [ 'incinerator', 'wastewater_plant' ] %}",
  68. " {% set key = 'man_made' %}",
  69. " {% set value = tags.man_made %}",
  70. "{% elseif tags.amenity == 'recycling' or tags.amenity == 'waste_basket' %}",
  71. " {% set key = 'amenity' %}",
  72. " {% set value = tags.amenity %}",
  73. "{% elseif tags.power == 'generator' %}",
  74. " {% set key = 'power' %}",
  75. " {% set value = tags.power %}",
  76. " {% set add = '(' ~ tagTransList('generator:source', attribute(tags, 'generator:source')) ~ ')' %}",
  77. "{% endif %}",
  78. "{% set kv = key ~ '=' ~ value %}"
  79. ],
  80. "description": "{{ tagTrans(key, value) }} {{ add }}",
  81. "body": [
  82. "{% if tags.recycling_type %}",
  83. "{{ keyTrans('recycling_type') }}: {{ tagTrans('recycling_type', tags.recycling_type) }}",
  84. "{% endif %}"
  85. ],
  86. "markerSign": [
  87. "{% if const[kv] %}",
  88. "{{ const[kv].sign|raw }}",
  89. "{% endif %}"
  90. ]
  91. },
  92. "info": [
  93. "<table>",
  94. "{% for kv, data in const %}",
  95. " {% if map.zoom >= data.minZoom %}",
  96. " {% set key = kv|split('=')[0] %}",
  97. " {% set value = kv|split('=')[1] %}",
  98. " <tr>",
  99. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  100. " <td>{{ tagTrans(key, value) }}{% if data.add %} ({{ trans(data.add) }}){% endif %}</td>",
  101. " </tr>",
  102. " {% endif %}",
  103. "{% endfor %}",
  104. " <tr>",
  105. " <td>{{ markerCircle({})|raw }}</td>",
  106. " <td>{{ trans('other') }}</td>",
  107. " </tr>",
  108. "</table>"
  109. ],
  110. "const": {
  111. "amenity=recycling": {
  112. "minZoom": 13,
  113. "sign": "<img data-src='maki:recycling'>"
  114. },
  115. "man_made=wastewater_plant": {
  116. "minZoom": 13,
  117. "sign": "<i class='fas fa-water'></i>"
  118. },
  119. "man_made=incinerator": {
  120. "minZoom": 13,
  121. "sign": "<i class='fas fa-burn'></i>"
  122. },
  123. "power=generator": {
  124. "minZoom": 13,
  125. "sign": "<i class='fas fa-bolt'></i>",
  126. "add": "tag:generator:source=waste"
  127. },
  128. "amenity=waste_basket": {
  129. "minZoom": 18,
  130. "sign": "<img data-src='maki:waste-basket'>"
  131. }
  132. }
  133. }