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.

256 lines
7.2 KiB

7 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=hospital",
  85. "healthcare=hospital"
  86. ],
  87. "sign": "<i class=\"fas fa-hospital-alt\"></i>"
  88. },
  89. {
  90. "types": [
  91. "healthcare=clinic"
  92. ],
  93. "sign": "<i class=\"fas fa-hospital\"></i>"
  94. },
  95. {
  96. "types": [
  97. "healthcare=centre"
  98. ],
  99. "sign": "<i class=\"far fa-hospital\"></i>"
  100. },
  101. {
  102. "types": [
  103. "healthcare=doctor",
  104. "amenity=doctors"
  105. ],
  106. "sign": "<img data-src='maki:doctor'>"
  107. },
  108. {
  109. "types": [
  110. "amenity=pharmacy",
  111. "healthcare=pharmacy"
  112. ],
  113. "sign": "<img data-src='maki:pharmacy'>"
  114. },
  115. {
  116. "types": [
  117. "emergency=defibrillator"
  118. ],
  119. "sign": "<img data-src='maki:defibrillator'>"
  120. },
  121. {
  122. "types": [
  123. "healthcare=dentist",
  124. "amenity=dentist"
  125. ],
  126. "sign": "<img data-src='maki:dentist'>"
  127. },
  128. {
  129. "types": [
  130. "amenity=baby_hatch"
  131. ],
  132. "sign": "🚼"
  133. },
  134. {
  135. "types": [
  136. "healthcare=blood_bank"
  137. ],
  138. "sign": "<img data-src='maki:blood-bank'>"
  139. },
  140. {
  141. "types": [
  142. "healthcare=blood_donation"
  143. ],
  144. "sign": "<img data-src='maki:blood-bank'>"
  145. },
  146. {
  147. "types": [
  148. "amenity=nursing_home"
  149. ]
  150. },
  151. {
  152. "types": [
  153. "amenity=social_facility"
  154. ],
  155. "sign": "<i class=\"fas fa-users\"></i>"
  156. },
  157. {
  158. "types": [
  159. "amenity=veterinary"
  160. ],
  161. "sign": "<img data-src='maki:veterinary'>"
  162. },
  163. {
  164. "types": [
  165. "healthcare=physiotherapist"
  166. ],
  167. "sign": "<i class=\"fas fa-user-injured\"></i>"
  168. },
  169. {
  170. "types": [
  171. "healthcare=psychotherapist"
  172. ],
  173. "sign": "<i class=\"fas fa-couch\"></i>"
  174. },
  175. {
  176. "types": [
  177. "healthcare=alternative"
  178. ],
  179. "sign": ""
  180. },
  181. {
  182. "types": [
  183. "healthcare=audiologist"
  184. ],
  185. "sign": "<i class=\"fas fa-headphones-alt\"></i>"
  186. },
  187. {
  188. "types": [
  189. "healthcare=birthing_center"
  190. ],
  191. "sign": "<i class=\"fas fa-baby\"></i>"
  192. },
  193. {
  194. "types": [
  195. "healthcare=dialysis"
  196. ],
  197. "sign": ""
  198. },
  199. {
  200. "types": [
  201. "healthcare=laboratory"
  202. ],
  203. "sign": "<i class=\"fas fa-vials\"></i>"
  204. },
  205. {
  206. "types": [
  207. "healthcare=midwife"
  208. ],
  209. "sign": ""
  210. },
  211. {
  212. "types": [
  213. "healthcare=nutrition_counseling"
  214. ],
  215. "sign": "<i class=\"fas fa-carrot\"></i>"
  216. },
  217. {
  218. "types": [
  219. "healthcare=occupational_therapist"
  220. ],
  221. "sign": ""
  222. },
  223. {
  224. "types": [
  225. "healthcare=optometrist"
  226. ],
  227. "sign": "<i class=\"fas fa-eye\"></i>"
  228. },
  229. {
  230. "types": [
  231. "healthcare=podiatrist"
  232. ],
  233. "sign": ""
  234. },
  235. {
  236. "types": [
  237. "healthcare=rehabilitation"
  238. ],
  239. "sign": "<i class=\"fas fa-crutch\"></i>"
  240. },
  241. {
  242. "types": [
  243. "healthcare=speech_therapist"
  244. ],
  245. "sign": ""
  246. }
  247. ],
  248. "filter": {
  249. "type": {
  250. "name": "{{ trans('filter:type') }}",
  251. "show_default": "true",
  252. "type": "select",
  253. "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 %}"
  254. }
  255. }
  256. }