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.

108 lines
4.2 KiB

8 years ago
8 years ago
8 years ago
8 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Serviciu Públicu",
  5. "ca": "Serveis Públics",
  6. "cs": "Veřejné služby",
  7. "de": "Öffentliche Dienste",
  8. "el": "Δημόσιες Υπηρεσίες",
  9. "en": "Public Services",
  10. "es": "Servicios públicos",
  11. "et": "Kommunaalteenused",
  12. "fr": "Services et équipements publics",
  13. "gl": "Servizos públicos",
  14. "hu": "Közszolgáltatások",
  15. "it": "Servizi pubblici",
  16. "ja": "公共サービス",
  17. "nb": "Offentlige tjenester",
  18. "nl": "Openbare diensten",
  19. "oc": "Servicis e equimaments publics",
  20. "pl": "Usługi publiczne",
  21. "pt": "Serviços públicos",
  22. "pt-br": "Utilidade pública",
  23. "ro": "Servicii publice",
  24. "ru": "Общественные места",
  25. "sr": "Јавне службе",
  26. "tr": "Kamu Hizmetleri",
  27. "uk": "Громадські місця"
  28. },
  29. "query": {
  30. "12": [
  31. "(",
  32. "node[amenity~'^(embassy|public_building|townhall)$'];",
  33. "way[amenity~'^(embassy|public_building|townhall)$'];",
  34. "relation[amenity~'^(embassy|public_building|townhall)$'];",
  35. "node[amenity=recycling][recyling_type=centre];",
  36. "way[amenity=recycling][recyling_type=centre];",
  37. "relation[amenity=recycling][recyling_type=centre];",
  38. "nwr[office~\"^(government|administration)$\"];",
  39. ");"
  40. ],
  41. "16": [
  42. "(",
  43. "node[amenity~'^(embassy|public_building|townhall|clock|drinking_water|recycling|toilets)$'];",
  44. "way[amenity~'^(embassy|public_building|townhall|recycling|toilets)$'];",
  45. "relation[amenity~'^(embassy|public_building|townhall|recycling|toilets)$'];",
  46. "node[drinking_water][drinking_water!=no];",
  47. "nwr[office~\"^(government|administration)$\"];",
  48. ");"
  49. ]
  50. },
  51. "feature": {
  52. "pre": [
  53. "{% if tags.amenity %}",
  54. "{% set key = 'amenity' %}",
  55. "{% set value = tags.amenity %}",
  56. "{% elseif tags.office %}",
  57. "{% set key = 'office' %}",
  58. "{% set value = tags.office %}",
  59. "{% elseif tags.drinking_water and tags.drinking_water != 'no' %}",
  60. "{% set key = 'amenity' %}",
  61. "{% set value = 'drinking_water' %}",
  62. "{% endif %}"
  63. ],
  64. "description": [
  65. "{% if key == 'office' %}",
  66. " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
  67. "{% else %}",
  68. " {{ tagTrans(key, value) }}",
  69. "{% endif %}"
  70. ],
  71. "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
  72. "markerSign": [
  73. "{% set kv = key ~ '=' ~ value %}",
  74. "{% if const[kv] %}",
  75. "{{ const[kv]|raw }}",
  76. "{% endif %}"
  77. ]
  78. },
  79. "info": [
  80. "<table>",
  81. "{% for value, sign in const %}",
  82. " <tr>",
  83. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>",
  84. " <td>{{ tagTrans('amenity', value) }}</td>",
  85. " </tr>",
  86. "{% endfor %}",
  87. "</table>"
  88. ],
  89. "const": {
  90. "amenity=clock": "<i class='fa fa-clock-o' aria-hidden='true'></i>",
  91. "amenity=drinking_water": "<img data-src='maki:drinking-water'>",
  92. "amenity=embassy": "<img data-src='maki:embassy'>",
  93. "amenity=public_building": "<img data-src='maki:building'>",
  94. "amenity=recycling": "<img data-src='maki:recycling'>",
  95. "amenity=toilets": "<img data-src='maki:toilet'>",
  96. "amenity=townhall": "<img data-src='maki:town-hall'>",
  97. "office=administration": "<img data-src='maki:town-hall'>",
  98. "office=government": "<img data-src='maki:town-hall'>"
  99. },
  100. "filter": {
  101. "type": {
  102. "name": "{{ trans('filter:type') }}",
  103. "show_default": "true",
  104. "type": "select",
  105. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
  106. }
  107. }
  108. }