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.3 KiB

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. "node[amenity~\"^(fire_station|hospital)$\"];",
  27. "way[amenity~\"^(fire_station|hospital)$\"];",
  28. "relation[amenity~\"^(fire_station|hospital)$\"];",
  29. ")"
  30. ],
  31. "13": [
  32. "(",
  33. "node[amenity~\"^(fire_station|hospital|police)$\"];",
  34. "way[amenity~\"^(fire_station|hospital|police)$\"];",
  35. "relation[amenity~\"^(fire_station|hospital|police)$\"];",
  36. "node[emergency~\"^(phone)$\"];",
  37. "node[highway=emergency_access_point];",
  38. ")"
  39. ]
  40. },
  41. "feature": {
  42. "pre": [
  43. "{% if tags.amenity in [ 'fire_station', 'hospital', 'police' ] %}",
  44. "{% set key = 'amenity' %}",
  45. "{% set value = tags.amenity %}",
  46. "{% elseif tags.emergency %}",
  47. "{% set key = 'emergency' %}",
  48. "{% set value = tags.emergency %}",
  49. "{% elseif tags.highway == 'emergency_access_point' %}",
  50. "{% set key = 'highway' %}",
  51. "{% set value = tags.highway %}",
  52. "{% endif %}",
  53. "{% set kv = key ~ \"=\" ~ value %}"
  54. ],
  55. "description": "{{ tagTrans(key, value) }}",
  56. "markerSign": [
  57. "{% set data = const[kv] %}",
  58. "{% if data %}",
  59. "{{ data.sign|raw }}",
  60. "{% endif %}"
  61. ],
  62. "markerSymbol": "{{ markerPointer({ fillColor: data.background|default('#f27f6a') })|raw }}",
  63. "listMarkerSymbol": "{{ markerCircle({ fillColor: data.background|default('#f27f6a') })|raw }}"
  64. },
  65. "info": [
  66. "<table>",
  67. "{% for value, data in const %}",
  68. "{% if data.zoom <= map.zoom %}",
  69. " <tr>",
  70. " <td>{{ markerCircle({ fillColor: data.background|default('#f27f6a') })|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  71. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  72. " </tr>",
  73. "{% endif %}",
  74. "{% endfor %}",
  75. "</table>"
  76. ],
  77. "const": {
  78. "amenity=fire_station": {
  79. "zoom": "11",
  80. "sign": "🔥"
  81. },
  82. "amenity=hospital": {
  83. "zoom": "11",
  84. "sign": "🏥"
  85. },
  86. "amenity=police": {
  87. "zoom": "13",
  88. "sign": "👮"
  89. },
  90. "emergency=phone": {
  91. "zoom": "13",
  92. "sign": "📞"
  93. },
  94. "highway=emergency_access_point": {
  95. "zoom": "13",
  96. "sign": "<img data-src='maki:hospital?fill=white'>",
  97. "background": "#009262"
  98. }
  99. }
  100. }