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.

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