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.

85 lines
2.6 KiB

  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. "it": "Servizi d'emergenza",
  14. "ja": "緊急サービス",
  15. "nl": "Hulpdiensten",
  16. "pt-br": "Emergência",
  17. "ro": "Servicii urgenta",
  18. "ru": "Экстренные службы",
  19. "uk": "Швидка допомога"
  20. },
  21. "query": {
  22. "11": [
  23. "(",
  24. "node[amenity~\"^(fire_station|hospital)$\"];",
  25. "way[amenity~\"^(fire_station|hospital)$\"];",
  26. "relation[amenity~\"^(fire_station|hospital)$\"];",
  27. ")"
  28. ],
  29. "13": [
  30. "(",
  31. "node[amenity~\"^(fire_station|hospital|police)$\"];",
  32. "way[amenity~\"^(fire_station|hospital|police)$\"];",
  33. "relation[amenity~\"^(fire_station|hospital|police)$\"];",
  34. "node[emergency~\"^(phone)$\"];",
  35. ")"
  36. ]
  37. },
  38. "feature": {
  39. "pre": [
  40. "{% if tags.amenity in [ 'fire_station', 'hospital', 'police' ] %}",
  41. "{% set key = 'amenity' %}",
  42. "{% set value = tags.amenity %}",
  43. "{% elseif tags.emergency %}",
  44. "{% set key = 'emergency' %}",
  45. "{% set value = tags.emergency %}",
  46. "{% endif %}"
  47. ],
  48. "description": "{{ tagTrans('amenity', tags.amenity) }}",
  49. "markerSign": [
  50. "{% set data = const[tags.amenity] %}",
  51. "{% if data %}",
  52. "{{ data.sign }}",
  53. "{% endif %}"
  54. ]
  55. },
  56. "info": [
  57. "<table>",
  58. "{% for value, data in const %}",
  59. "{% if data.zoom <= map.zoom %}",
  60. " <tr>",
  61. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign }}</div></td>",
  62. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  63. " </tr>",
  64. "{% endif %}",
  65. "{% endfor %}",
  66. "</table>"
  67. ],
  68. "const": {
  69. "amenity=fire_station": {
  70. "zoom": "11",
  71. "sign": "🔥"
  72. },
  73. "amenity=hospital": {
  74. "zoom": "11",
  75. "sign": "🏥"
  76. },
  77. "amenity=police": {
  78. "zoom": "13",
  79. "sign": "👮"
  80. },
  81. "emergency=phone": {
  82. "zoom": "13",
  83. "sign": "📞"
  84. }
  85. }
  86. }