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.

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