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.

257 lines
7.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|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_centre",
  190. "healthcare=birthing_center"
  191. ],
  192. "sign": "<i class=\"fas fa-baby\"></i>"
  193. },
  194. {
  195. "types": [
  196. "healthcare=dialysis"
  197. ],
  198. "sign": ""
  199. },
  200. {
  201. "types": [
  202. "healthcare=laboratory"
  203. ],
  204. "sign": "<i class=\"fas fa-vials\"></i>"
  205. },
  206. {
  207. "types": [
  208. "healthcare=midwife"
  209. ],
  210. "sign": ""
  211. },
  212. {
  213. "types": [
  214. "healthcare=nutrition_counseling"
  215. ],
  216. "sign": "<i class=\"fas fa-carrot\"></i>"
  217. },
  218. {
  219. "types": [
  220. "healthcare=occupational_therapist"
  221. ],
  222. "sign": ""
  223. },
  224. {
  225. "types": [
  226. "healthcare=optometrist"
  227. ],
  228. "sign": "<i class=\"fas fa-eye\"></i>"
  229. },
  230. {
  231. "types": [
  232. "healthcare=podiatrist"
  233. ],
  234. "sign": ""
  235. },
  236. {
  237. "types": [
  238. "healthcare=rehabilitation"
  239. ],
  240. "sign": "<i class=\"fas fa-crutch\"></i>"
  241. },
  242. {
  243. "types": [
  244. "healthcare=speech_therapist"
  245. ],
  246. "sign": ""
  247. }
  248. ],
  249. "filter": {
  250. "type": {
  251. "name": "{{ trans('filter:type') }}",
  252. "show_default": "true",
  253. "type": "select",
  254. "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 %}"
  255. }
  256. }
  257. }