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.

150 lines
5.2 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. "gl": "Servizos de emerxencia",
  14. "hu": "Vészhelyzet",
  15. "it": "Servizi d'emergenza",
  16. "ja": "緊急サービス",
  17. "nb": "Nødtjenester",
  18. "nl": "Hulpdiensten",
  19. "oc": "Servicis d'urgéncia",
  20. "pl": "Służby ratunkowe",
  21. "pt": "Emergência",
  22. "pt-br": "Emergência",
  23. "ro": "Servicii urgenta",
  24. "ru": "Экстренные службы",
  25. "sr": "Хитне службе",
  26. "tr": "Acil Servisler",
  27. "uk": "Швидка допомога"
  28. },
  29. "query": {
  30. "11": [
  31. "(",
  32. "nwr[amenity~\"^(fire_station|hospital)$\"];",
  33. "nwr[emergency~\"^(lifeguard)$\"];",
  34. ")"
  35. ],
  36. "13": [
  37. "(",
  38. "nwr[amenity~\"^(fire_station|hospital|police)$\"];",
  39. "nwr[emergency~\"^(lifeguard)$\"];",
  40. "node[emergency~\"^(phone|defibrillator|access_point)$\"];",
  41. "node[highway=emergency_access_point];",
  42. ")"
  43. ]
  44. },
  45. "feature": {
  46. "pre": [
  47. "{% if tags.amenity in [ 'fire_station', 'hospital', 'police' ] %}",
  48. "{% set key = 'amenity' %}",
  49. "{% set value = tags.amenity %}",
  50. "{% elseif tags.emergency %}",
  51. "{% set key = 'emergency' %}",
  52. "{% set value = tags.emergency %}",
  53. "{% elseif tags.highway == 'emergency_access_point' %}",
  54. "{% set key = 'highway' %}",
  55. "{% set value = tags.highway %}",
  56. "{% endif %}",
  57. "{% set kv = key ~ \"=\" ~ value %}"
  58. ],
  59. "description": "{{ tagTrans(key, value) }}",
  60. "markerSign": [
  61. "{% set data = const[kv] %}",
  62. "{% if data %}",
  63. "{{ data.sign|raw }}",
  64. "{% endif %}"
  65. ],
  66. "markerSymbol": "{{ markerPointer({ fillColor: data.background|default('#f27f6a') })|raw }}",
  67. "listMarkerSymbol": "{{ markerCircle({ fillColor: data.background|default('#f27f6a') })|raw }}"
  68. },
  69. "info": [
  70. "<table>",
  71. "{% for value, data in const %}",
  72. "{% if data.zoom <= map.zoom %}",
  73. " <tr>",
  74. " <td>{{ markerCircle({ fillColor: data.background|default('#f27f6a') })|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  75. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  76. " </tr>",
  77. "{% endif %}",
  78. "{% endfor %}",
  79. "</table>"
  80. ],
  81. "const": {
  82. "amenity=fire_station": {
  83. "zoom": "11",
  84. "sign": "🔥"
  85. },
  86. "amenity=hospital": {
  87. "zoom": "11",
  88. "sign": "🏥"
  89. },
  90. "amenity=police": {
  91. "zoom": "13",
  92. "sign": "👮"
  93. },
  94. "emergency=lifeguard": {
  95. "zoom": "11",
  96. "sign": "<i class='far fa-life-ring'></i>"
  97. },
  98. "emergency=phone": {
  99. "zoom": "13",
  100. "sign": "📞"
  101. },
  102. "emergency=defibrillator": {
  103. "zoom": "13",
  104. "sign": "<img data-src='maki:defibrillator?fill=white'>",
  105. "background": "#009262"
  106. },
  107. "highway=emergency_access_point": {
  108. "zoom": "13",
  109. "sign": "<img data-src='maki:hospital?fill=white'>",
  110. "background": "#009262"
  111. }
  112. },
  113. "filter": {
  114. "type": {
  115. "name": "{{ trans('filter:type') }}",
  116. "type": "select",
  117. "show_default": "true",
  118. "values": {
  119. "fire_station": {
  120. "name": "{{ tagTrans('amenity', 'fire_station') }}",
  121. "query": "nwr[amenity=fire_station]"
  122. },
  123. "hospital": {
  124. "name": "{{ tagTrans('amenity', 'hospital') }}",
  125. "query": "nwr[amenity=hospital]"
  126. },
  127. "police": {
  128. "name": "{{ tagTrans('amenity', 'police') }}",
  129. "query": "nwr[amenity=police]"
  130. },
  131. "lifeguard": {
  132. "name": "{{ tagTrans('emergency', 'lifeguard') }}",
  133. "query": "nwr[emergency=lifeguard]"
  134. },
  135. "emergency_phone": {
  136. "name": "{{ tagTrans('emergency', 'phone') }}",
  137. "query": "node[emergency=phone]"
  138. },
  139. "defibrillator": {
  140. "name": "{{ tagTrans('emergency', 'defibrillator') }}",
  141. "query": "node[emergency=defibrillator]"
  142. },
  143. "emergency_access_point": {
  144. "name": "{{ tagTrans('highway', 'emergency_access_point') }}",
  145. "query": "(node[highway=emergency_access_point];node[emergency=access_point];)"
  146. }
  147. }
  148. }
  149. }
  150. }