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.

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