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.

163 lines
4.9 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|split(';')[0] %}",
  52. "{% else %}",
  53. " {% set key = 'amenity' %}",
  54. " {% set value = tags.amenity %}",
  55. "{% endif %}",
  56. "{% set kv = key ~ '=' ~ value %}",
  57. "{% set found = { sign: '' } %}",
  58. "{% for data in const %}",
  59. " {% if kv in data.types %}{% set found = data %}{% endif %}",
  60. "{% endfor %}"
  61. ],
  62. "description": [
  63. "{{ tagTransList(key, attribute(tags, key)) }}",
  64. "{% if attribute(tags, 'healthcare:speciality') %}",
  65. "-",
  66. "{{ tagTransList('healthcare:speciality', attribute(tags, 'healthcare:speciality')) }}",
  67. "{% endif %}"
  68. ],
  69. "markerSign": "{{ found.sign|raw }}"
  70. },
  71. "info": [
  72. "<table>",
  73. "{% for data in const %}",
  74. " <tr>",
  75. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  76. " <td>{{ tagTrans(data.types[0]|split('=')[0], data.types[0]|split('=')[1]) }}</td>",
  77. " </tr>",
  78. "{% endfor %}",
  79. "</table>"
  80. ],
  81. "const": [
  82. {
  83. "types": [
  84. "amenity=baby_hatch"
  85. ],
  86. "sign": "🚼"
  87. },
  88. {
  89. "types": [
  90. "healthcare=blood_bank"
  91. ],
  92. "sign": "<img data-src='maki:blood-bank'>"
  93. },
  94. {
  95. "types": [
  96. "healthcare=blood_donation"
  97. ],
  98. "sign": "<img data-src='maki:blood-bank'>"
  99. },
  100. {
  101. "types": [
  102. "healthcare=clinic"
  103. ],
  104. "sign": "🏥"
  105. },
  106. {
  107. "types": [
  108. "emergency=defibrillator"
  109. ],
  110. "sign": "<img data-src='maki:defibrillator'>"
  111. },
  112. {
  113. "types": [
  114. "healthcare=dentist"
  115. ],
  116. "sign": "<img data-src='maki:dentist'>"
  117. },
  118. {
  119. "types": [
  120. "healthcare=doctor",
  121. "amenity=doctors"
  122. ],
  123. "sign": "<img data-src='maki:doctor'>"
  124. },
  125. {
  126. "types": [
  127. "amenity=hospital",
  128. "healthcare=hospital"
  129. ],
  130. "sign": "🏥"
  131. },
  132. {
  133. "types": [
  134. "amenity=nursing_home"
  135. ]
  136. },
  137. {
  138. "types": [
  139. "amenity=pharmacy"
  140. ],
  141. "sign": "<img data-src='maki:pharmacy'>"
  142. },
  143. {
  144. "types": [
  145. "amenity=social_facility"
  146. ]
  147. },
  148. {
  149. "types": [
  150. "amenity=veterinary"
  151. ],
  152. "sign": "<img data-src='maki:veterinary'>"
  153. }
  154. ],
  155. "filter": {
  156. "type": {
  157. "name": "{{ trans('filter:type') }}",
  158. "show_default": "true",
  159. "type": "select",
  160. "values": "{% for data in const %}<option value=\"{{ data.types[0] }}\" query=\"({% for t in data.types %}nwr[{{ t }}];{% endfor %})\" minzoom=\"{{ data.zoom }}\">{{ tagTrans(data.types[0]) }}</option>{% endfor %}"
  161. }
  162. }
  163. }