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.

89 lines
3.3 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Salú",
  5. "cs": "Zdravotnictví",
  6. "de": "Gesundheitsdienste",
  7. "el": "Υγεία",
  8. "en": "Health",
  9. "fr": "Santé",
  10. "it": "Sanità",
  11. "ja": "健康",
  12. "nl": "Gezondheid",
  13. "pl": "Zdrowie",
  14. "pt-br": "Saúde e Assistência",
  15. "ro": "Sanatate",
  16. "ru": "Медицина",
  17. "uk": "Здоров'я"
  18. },
  19. "query": {
  20. "11": [
  21. "(",
  22. "node[amenity~\"^(hospital)$\"];",
  23. "way[amenity~\"^(hospital)$\"];",
  24. "relation[amenity~\"^(hospital)$\"];",
  25. "node[healthcare~\"^(hospital|clinic)$\"];",
  26. "way[healthcare~\"^(hospital|clinic)$\"];",
  27. "relation[healthcare~\"^(hospital|clinic)$\"];",
  28. ")"
  29. ],
  30. "14": [
  31. "(",
  32. "node[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
  33. "node[emergency=defibrillator];",
  34. "way[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
  35. "relation[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
  36. "node[healthcare];",
  37. "way[healthcare];",
  38. "relation[healthcare];",
  39. ")"
  40. ]
  41. },
  42. "feature": {
  43. "pre": [
  44. "{% if tags.emergency in [ 'defibrillator' ] %}",
  45. " {% set key = 'emergency' %}",
  46. " {% set value = tags.emergency %}",
  47. "{% elseif tags.healthcare %}",
  48. " {% set key = 'healthcare' %}",
  49. " {% set value = tags.healthcare %}",
  50. "{% else %}",
  51. " {% set key = 'amenity' %}",
  52. " {% set value = tags.amenity %}",
  53. "{% endif %}"
  54. ],
  55. "description": [
  56. "{{ tagTrans(key, value) }}",
  57. "{% if attribute(tags, 'healthcare:speciality') %}",
  58. "-",
  59. "{{ tagTransList('healthcare:speciality', attribute(tags, 'healthcare:speciality')) }}",
  60. "{% endif %}"
  61. ],
  62. "markerSign": "{{ const[concat(key, '=', value)]|raw }}"
  63. },
  64. "info": [
  65. "<table>",
  66. "{% for value, sign in const %}",
  67. " <tr>",
  68. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>",
  69. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  70. " </tr>",
  71. "{% endfor %}",
  72. "</table>"
  73. ],
  74. "const": {
  75. "amenity=baby_hatch": "🚼",
  76. "healthcare=blood_bank": "<img src='maki:blood-bank'>",
  77. "healthcare=blood_donation": "<img src='maki:blood-bank'>",
  78. "healthcare=clinic": "🏥",
  79. "emergency=defibrillator": "<img src='maki:defibrillator'>",
  80. "healthcare=dentist": "<img src='maki:dentist'>",
  81. "healthcare=doctor": "<img src='maki:doctor'>",
  82. "amenity=doctors": "<img src='maki:doctor'>",
  83. "amenity=hospital": "🏥",
  84. "healthcare=hospital": "🏥",
  85. "amenity=nursing_home": "",
  86. "amenity=pharmacy": "<img src='maki:pharmacy'>",
  87. "amenity=social_facility": "",
  88. "amenity=veterinary": "<img src='maki:veterinary'>"
  89. }
  90. }