Main categories of OpenStreetBrowser with public transport zoom level
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.

91 lines
3.3 KiB

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