Main categories of OpenStreetBrowser with support for whitewater
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.

88 lines
2.7 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. "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. "{% set kv = key ~ \"=\" ~ value %}"
  49. ],
  50. "description": "{{ tagTrans(key, value) }}",
  51. "markerSign": [
  52. "{% set data = const[kv] %}",
  53. "{% if data %}",
  54. "{{ data.sign }}",
  55. "{% endif %}"
  56. ]
  57. },
  58. "info": [
  59. "<table>",
  60. "{% for value, data in const %}",
  61. "{% if data.zoom <= map.zoom %}",
  62. " <tr>",
  63. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign }}</div></td>",
  64. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  65. " </tr>",
  66. "{% endif %}",
  67. "{% endfor %}",
  68. "</table>"
  69. ],
  70. "const": {
  71. "amenity=fire_station": {
  72. "zoom": "11",
  73. "sign": "🔥"
  74. },
  75. "amenity=hospital": {
  76. "zoom": "11",
  77. "sign": "🏥"
  78. },
  79. "amenity=police": {
  80. "zoom": "13",
  81. "sign": "👮"
  82. },
  83. "emergency=phone": {
  84. "zoom": "13",
  85. "sign": "📞"
  86. }
  87. }
  88. }