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.

144 lines
5.0 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Servicios d'emerxencia",
  5. "ca": "Serveis d'emergència",
  6. "cs": "Pohotovostní služby",
  7. "de": "Notfalldienste",
  8. "el": "Υπηρεσίες Έκτακτης Ανάγκης",
  9. "en": "Emergency Services",
  10. "es": "Servicios de emergencia",
  11. "et": "Hädaabi teenused",
  12. "fr": "Services d'urgence",
  13. "hu": "Vészhelyzet",
  14. "it": "Servizi d'emergenza",
  15. "ja": "緊急サービス",
  16. "nl": "Hulpdiensten",
  17. "pt": "Emergência",
  18. "pt-br": "Emergência",
  19. "ro": "Servicii urgenta",
  20. "ru": "Экстренные службы",
  21. "uk": "Швидка допомога"
  22. },
  23. "query": {
  24. "11": [
  25. "(",
  26. "nwr[amenity~\"^(fire_station|hospital)$\"];",
  27. "nwr[emergency~\"^(lifeguard)$\"];",
  28. ")"
  29. ],
  30. "13": [
  31. "(",
  32. "nwr[amenity~\"^(fire_station|hospital|police)$\"];",
  33. "nwr[emergency~\"^(lifeguard)$\"];",
  34. "node[emergency~\"^(phone|defibrillator|access_point)$\"];",
  35. "node[highway=emergency_access_point];",
  36. ")"
  37. ]
  38. },
  39. "feature": {
  40. "pre": [
  41. "{% if tags.amenity in [ 'fire_station', 'hospital', 'police' ] %}",
  42. "{% set key = 'amenity' %}",
  43. "{% set value = tags.amenity %}",
  44. "{% elseif tags.emergency %}",
  45. "{% set key = 'emergency' %}",
  46. "{% set value = tags.emergency %}",
  47. "{% elseif tags.highway == 'emergency_access_point' %}",
  48. "{% set key = 'highway' %}",
  49. "{% set value = tags.highway %}",
  50. "{% endif %}",
  51. "{% set kv = key ~ \"=\" ~ value %}"
  52. ],
  53. "description": "{{ tagTrans(key, value) }}",
  54. "markerSign": [
  55. "{% set data = const[kv] %}",
  56. "{% if data %}",
  57. "{{ data.sign|raw }}",
  58. "{% endif %}"
  59. ],
  60. "markerSymbol": "{{ markerPointer({ fillColor: data.background|default('#f27f6a') })|raw }}",
  61. "listMarkerSymbol": "{{ markerCircle({ fillColor: data.background|default('#f27f6a') })|raw }}"
  62. },
  63. "info": [
  64. "<table>",
  65. "{% for value, data in const %}",
  66. "{% if data.zoom <= map.zoom %}",
  67. " <tr>",
  68. " <td>{{ markerCircle({ fillColor: data.background|default('#f27f6a') })|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  69. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  70. " </tr>",
  71. "{% endif %}",
  72. "{% endfor %}",
  73. "</table>"
  74. ],
  75. "const": {
  76. "amenity=fire_station": {
  77. "zoom": "11",
  78. "sign": "🔥"
  79. },
  80. "amenity=hospital": {
  81. "zoom": "11",
  82. "sign": "🏥"
  83. },
  84. "amenity=police": {
  85. "zoom": "13",
  86. "sign": "👮"
  87. },
  88. "emergency=lifeguard": {
  89. "zoom": "11",
  90. "sign": "<i class='far fa-life-ring'></i>"
  91. },
  92. "emergency=phone": {
  93. "zoom": "13",
  94. "sign": "📞"
  95. },
  96. "emergency=defibrillator": {
  97. "zoom": "13",
  98. "sign": "<img data-src='maki:defibrillator?fill=white'>",
  99. "background": "#009262"
  100. },
  101. "highway=emergency_access_point": {
  102. "zoom": "13",
  103. "sign": "<img data-src='maki:hospital?fill=white'>",
  104. "background": "#009262"
  105. }
  106. },
  107. "filter": {
  108. "type": {
  109. "name": "{{ trans('filter:type') }}",
  110. "type": "select",
  111. "show_default": "true",
  112. "values": {
  113. "fire_station": {
  114. "name": "{{ tagTrans('amenity', 'fire_station') }}",
  115. "query": "nwr[amenity=fire_station]"
  116. },
  117. "hospital": {
  118. "name": "{{ tagTrans('amenity', 'hospital') }}",
  119. "query": "nwr[amenity=hospital]"
  120. },
  121. "police": {
  122. "name": "{{ tagTrans('amenity', 'police') }}",
  123. "query": "nwr[amenity=police]"
  124. },
  125. "lifeguard": {
  126. "name": "{{ tagTrans('emergency', 'lifeguard') }}",
  127. "query": "nwr[emergency=lifeguard]"
  128. },
  129. "emergency_phone": {
  130. "name": "{{ tagTrans('emergency', 'phone') }}",
  131. "query": "node[emergency=phone]"
  132. },
  133. "defibrillator": {
  134. "name": "{{ tagTrans('emergency', 'defibrillator') }}",
  135. "query": "node[emergency=defibrillator]"
  136. },
  137. "emergency_access_point": {
  138. "name": "{{ tagTrans('highway', 'emergency_access_point') }}",
  139. "query": "(node[highway=emergency_access_point];node[emergency=access_point];)"
  140. }
  141. }
  142. }
  143. }
  144. }