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.

247 lines
6.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. "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.healthcare %}",
  46. " {% set key = 'healthcare' %}",
  47. " {% set value = tags.healthcare|split(';')[0] %}",
  48. "{% else %}",
  49. " {% set key = 'amenity' %}",
  50. " {% set value = tags.amenity %}",
  51. "{% endif %}",
  52. "{% set kv = key ~ '=' ~ value %}",
  53. "{% set found = { sign: '' } %}",
  54. "{% for data in const %}",
  55. " {% if kv in data.types %}{% set found = data %}{% endif %}",
  56. "{% endfor %}"
  57. ],
  58. "description": [
  59. "{{ tagTransList(key, attribute(tags, key)) }}",
  60. "{% if attribute(tags, 'healthcare:speciality') %}",
  61. "-",
  62. "{{ tagTransList('healthcare:speciality', attribute(tags, 'healthcare:speciality')) }}",
  63. "{% endif %}"
  64. ],
  65. "markerSign": "{{ found.sign|raw }}"
  66. },
  67. "info": [
  68. "<table>",
  69. "{% for data in const %}",
  70. " <tr>",
  71. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  72. " <td>{{ tagTrans(data.types[0]|split('=')[0], data.types[0]|split('=')[1]) }}</td>",
  73. " </tr>",
  74. "{% endfor %}",
  75. "</table>"
  76. ],
  77. "const": [
  78. {
  79. "types": [
  80. "amenity=hospital",
  81. "healthcare=hospital"
  82. ],
  83. "sign": "<i class=\"fas fa-hospital-alt\"></i>"
  84. },
  85. {
  86. "types": [
  87. "healthcare=clinic"
  88. ],
  89. "sign": "<i class=\"fas fa-hospital\"></i>"
  90. },
  91. {
  92. "types": [
  93. "healthcare=centre"
  94. ],
  95. "sign": "<i class=\"far fa-hospital\"></i>"
  96. },
  97. {
  98. "types": [
  99. "healthcare=doctor",
  100. "amenity=doctors"
  101. ],
  102. "sign": "<img data-src='maki:doctor'>"
  103. },
  104. {
  105. "types": [
  106. "amenity=pharmacy",
  107. "healthcare=pharmacy"
  108. ],
  109. "sign": "<img data-src='maki:pharmacy'>"
  110. },
  111. {
  112. "types": [
  113. "healthcare=dentist",
  114. "amenity=dentist"
  115. ],
  116. "sign": "<img data-src='maki:dentist'>"
  117. },
  118. {
  119. "types": [
  120. "amenity=baby_hatch"
  121. ],
  122. "sign": "🚼"
  123. },
  124. {
  125. "types": [
  126. "healthcare=blood_bank"
  127. ],
  128. "sign": "<img data-src='maki:blood-bank'>"
  129. },
  130. {
  131. "types": [
  132. "healthcare=blood_donation"
  133. ],
  134. "sign": "<img data-src='maki:blood-bank'>"
  135. },
  136. {
  137. "types": [
  138. "amenity=nursing_home"
  139. ]
  140. },
  141. {
  142. "types": [
  143. "amenity=social_facility"
  144. ],
  145. "sign": "<i class=\"fas fa-users\"></i>"
  146. },
  147. {
  148. "types": [
  149. "amenity=veterinary"
  150. ],
  151. "sign": "<img data-src='maki:veterinary'>"
  152. },
  153. {
  154. "types": [
  155. "healthcare=physiotherapist"
  156. ],
  157. "sign": "<i class=\"fas fa-user-injured\"></i>"
  158. },
  159. {
  160. "types": [
  161. "healthcare=psychotherapist"
  162. ],
  163. "sign": "<i class=\"fas fa-couch\"></i>"
  164. },
  165. {
  166. "types": [
  167. "healthcare=alternative"
  168. ],
  169. "sign": ""
  170. },
  171. {
  172. "types": [
  173. "healthcare=audiologist"
  174. ],
  175. "sign": "<i class=\"fas fa-headphones-alt\"></i>"
  176. },
  177. {
  178. "types": [
  179. "healthcare=birthing_centre",
  180. "healthcare=birthing_center"
  181. ],
  182. "sign": "<i class=\"fas fa-baby\"></i>"
  183. },
  184. {
  185. "types": [
  186. "healthcare=dialysis"
  187. ],
  188. "sign": ""
  189. },
  190. {
  191. "types": [
  192. "healthcare=laboratory"
  193. ],
  194. "sign": "<i class=\"fas fa-vials\"></i>"
  195. },
  196. {
  197. "types": [
  198. "healthcare=midwife"
  199. ],
  200. "sign": ""
  201. },
  202. {
  203. "types": [
  204. "healthcare=nutrition_counseling"
  205. ],
  206. "sign": "<i class=\"fas fa-carrot\"></i>"
  207. },
  208. {
  209. "types": [
  210. "healthcare=occupational_therapist"
  211. ],
  212. "sign": ""
  213. },
  214. {
  215. "types": [
  216. "healthcare=optometrist"
  217. ],
  218. "sign": "<i class=\"fas fa-eye\"></i>"
  219. },
  220. {
  221. "types": [
  222. "healthcare=podiatrist"
  223. ],
  224. "sign": ""
  225. },
  226. {
  227. "types": [
  228. "healthcare=rehabilitation"
  229. ],
  230. "sign": "<i class=\"fas fa-crutch\"></i>"
  231. },
  232. {
  233. "types": [
  234. "healthcare=speech_therapist"
  235. ],
  236. "sign": ""
  237. }
  238. ],
  239. "filter": {
  240. "type": {
  241. "name": "{{ trans('filter:type') }}",
  242. "show_default": "true",
  243. "type": "select",
  244. "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 %}"
  245. }
  246. }
  247. }