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.

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