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.

111 lines
3.6 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. "it": "Smaltimento",
  10. "ja": "処理場",
  11. "nl": "Afvalverwijdering",
  12. "pt": "Lixo",
  13. "pt-br": "Lixo",
  14. "ru": "Переработка отходов"
  15. },
  16. "query": {
  17. "13": [
  18. "(",
  19. "node[landuse=landfill];",
  20. "node[man_made=wastewater_plant];",
  21. "node[amenity=recycling][recycling_type=centre];",
  22. "way[landuse=landfill];",
  23. "way[man_made=wastewater_plant];",
  24. "way[amenity=recycling][recycling_type=centre];",
  25. "relation[landuse=landfill];",
  26. "relation[man_made=wastewater_plant];",
  27. "relation[amenity=recycling][recycling_type=centre];",
  28. ")"
  29. ],
  30. "15": [
  31. "(",
  32. "node[landuse=landfill];",
  33. "node[man_made=wastewater_plant];",
  34. "node[amenity=recycling];",
  35. "way[landuse=landfill];",
  36. "way[man_made=wastewater_plant];",
  37. "way[amenity=recycling];",
  38. "relation[landuse=landfill];",
  39. "relation[man_made=wastewater_plant];",
  40. "relation[amenity=recycling];",
  41. ")"
  42. ],
  43. "18": [
  44. "(",
  45. "node[landuse=landfill];",
  46. "node[man_made=wastewater_plant];",
  47. "node[amenity~\"^(recycling|waste_basket)$\"];",
  48. "way[landuse=landfill];",
  49. "way[man_made=wastewater_plant];",
  50. "way[amenity=recycling];",
  51. "relation[landuse=landfill];",
  52. "relation[man_made=wastewater_plant];",
  53. "relation[amenity=recycling];",
  54. ")"
  55. ]
  56. },
  57. "feature": {
  58. "pre": [
  59. "{% if tags.landuse == 'landfill' %}",
  60. " {% set key = 'landuse' %}",
  61. " {% set value = tags.landuse %}",
  62. "{% elseif tags.man_made == 'wastewater_plant' %}",
  63. " {% set key = 'man_made' %}",
  64. " {% set value = tags.man_made %}",
  65. "{% elseif tags.amenity == 'recycling' or tags.amenity == 'waste_basket' %}",
  66. " {% set key = 'amenity' %}",
  67. " {% set value = tags.amenity %}",
  68. "{% endif %}",
  69. "{% set kv = key ~ '=' ~ value %}"
  70. ],
  71. "description": "{{ tagTrans(key, value) }}",
  72. "body": [
  73. "{% if tags.recycling_type %}",
  74. "{{ keyTrans('recycling_type') }}: {{ tagTrans('recycling_type', tags.recycling_type) }}",
  75. "{% endif %}"
  76. ],
  77. "markerSign": [
  78. "{% if const[kv] %}",
  79. "{{ const[kv].sign|raw }}",
  80. "{% endif %}"
  81. ]
  82. },
  83. "info": [
  84. "<table>",
  85. "{% for kv, data in const %}",
  86. " {% if map.zoom >= data.minZoom %}",
  87. " {% set key = kv|split('=')[0] %}",
  88. " {% set value = kv|split('=')[1] %}",
  89. " <tr>",
  90. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  91. " <td>{{ tagTrans('leisure', value) }}</td>",
  92. " </tr>",
  93. " {% endif %}",
  94. "{% endfor %}",
  95. " <tr>",
  96. " <td>{{ markerCircle({})|raw }}</td>",
  97. " <td>{{ trans('other') }}</td>",
  98. " </tr>",
  99. "</table>"
  100. ],
  101. "const": {
  102. "amenity=recycling": {
  103. "minZoom": 13,
  104. "sign": "<img src='maki:recycling'>"
  105. },
  106. "amenity=waste_basket": {
  107. "minZoom": 18,
  108. "sign": "<img src='maki:waste-basket'>"
  109. }
  110. }
  111. }