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.

254 lines
7.1 KiB

6 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Salú",
  5. "ca": "Sanitat",
  6. "cs": "Zdravotnictví",
  7. "de": "Gesundheitsdienste",
  8. "el": "Υγεία",
  9. "en": "Health",
  10. "es": "Salud",
  11. "fr": "Santé",
  12. "gl": "Saúde",
  13. "hu": "Egészségügy",
  14. "it": "Salute",
  15. "ja": "健康",
  16. "nb": "Helse",
  17. "nl": "Gezondheid",
  18. "oc": "Santat",
  19. "pl": "Zdrowie",
  20. "pt": "Saúde",
  21. "pt-br": "Saúde e assistência",
  22. "ro": "Sanatate",
  23. "ru": "Медицина",
  24. "sr": "Здравље",
  25. "tr": "Sağlık",
  26. "uk": "Здоров'я"
  27. },
  28. "query": {
  29. "11": [
  30. "(",
  31. "node[amenity~\"^(hospital)$\"];",
  32. "way[amenity~\"^(hospital)$\"];",
  33. "relation[amenity~\"^(hospital)$\"];",
  34. "node[healthcare~\"^(hospital|clinic)$\"];",
  35. "way[healthcare~\"^(hospital|clinic)$\"];",
  36. "relation[healthcare~\"^(hospital|clinic)$\"];",
  37. ")"
  38. ],
  39. "14": [
  40. "(",
  41. "node[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
  42. "way[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
  43. "relation[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
  44. "node[healthcare];",
  45. "way[healthcare];",
  46. "relation[healthcare];",
  47. ")"
  48. ]
  49. },
  50. "feature": {
  51. "pre": [
  52. "{% if tags.healthcare %}",
  53. " {% set key = 'healthcare' %}",
  54. " {% set value = tags.healthcare|split(';')[0] %}",
  55. "{% else %}",
  56. " {% set key = 'amenity' %}",
  57. " {% set value = tags.amenity %}",
  58. "{% endif %}",
  59. "{% set kv = key ~ '=' ~ value %}",
  60. "{% set found = { sign: '' } %}",
  61. "{% for data in const %}",
  62. " {% if kv in data.types %}{% set found = data %}{% endif %}",
  63. "{% endfor %}"
  64. ],
  65. "description": [
  66. "{{ tagTransList(key, attribute(tags, key)) }}",
  67. "{% if attribute(tags, 'healthcare:speciality') %}",
  68. "-",
  69. "{{ tagTransList('healthcare:speciality', attribute(tags, 'healthcare:speciality')) }}",
  70. "{% endif %}"
  71. ],
  72. "markerSign": "{{ found.sign|raw }}"
  73. },
  74. "info": [
  75. "<table>",
  76. "{% for data in const %}",
  77. " <tr>",
  78. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  79. " <td>{{ tagTrans(data.types[0]|split('=')[0], data.types[0]|split('=')[1]) }}</td>",
  80. " </tr>",
  81. "{% endfor %}",
  82. "</table>"
  83. ],
  84. "const": [
  85. {
  86. "types": [
  87. "amenity=hospital",
  88. "healthcare=hospital"
  89. ],
  90. "sign": "<i class=\"fas fa-hospital-alt\"></i>"
  91. },
  92. {
  93. "types": [
  94. "healthcare=clinic"
  95. ],
  96. "sign": "<i class=\"fas fa-hospital\"></i>"
  97. },
  98. {
  99. "types": [
  100. "healthcare=centre"
  101. ],
  102. "sign": "<i class=\"far fa-hospital\"></i>"
  103. },
  104. {
  105. "types": [
  106. "healthcare=doctor",
  107. "amenity=doctors"
  108. ],
  109. "sign": "<img data-src='maki:doctor'>"
  110. },
  111. {
  112. "types": [
  113. "amenity=pharmacy",
  114. "healthcare=pharmacy"
  115. ],
  116. "sign": "<img data-src='maki:pharmacy'>"
  117. },
  118. {
  119. "types": [
  120. "healthcare=dentist",
  121. "amenity=dentist"
  122. ],
  123. "sign": "<img data-src='maki:dentist'>"
  124. },
  125. {
  126. "types": [
  127. "amenity=baby_hatch"
  128. ],
  129. "sign": "🚼"
  130. },
  131. {
  132. "types": [
  133. "healthcare=blood_bank"
  134. ],
  135. "sign": "<img data-src='maki:blood-bank'>"
  136. },
  137. {
  138. "types": [
  139. "healthcare=blood_donation"
  140. ],
  141. "sign": "<img data-src='maki:blood-bank'>"
  142. },
  143. {
  144. "types": [
  145. "amenity=nursing_home"
  146. ]
  147. },
  148. {
  149. "types": [
  150. "amenity=social_facility"
  151. ],
  152. "sign": "<i class=\"fas fa-users\"></i>"
  153. },
  154. {
  155. "types": [
  156. "amenity=veterinary"
  157. ],
  158. "sign": "<img data-src='maki:veterinary'>"
  159. },
  160. {
  161. "types": [
  162. "healthcare=physiotherapist"
  163. ],
  164. "sign": "<i class=\"fas fa-user-injured\"></i>"
  165. },
  166. {
  167. "types": [
  168. "healthcare=psychotherapist"
  169. ],
  170. "sign": "<i class=\"fas fa-couch\"></i>"
  171. },
  172. {
  173. "types": [
  174. "healthcare=alternative"
  175. ],
  176. "sign": ""
  177. },
  178. {
  179. "types": [
  180. "healthcare=audiologist"
  181. ],
  182. "sign": "<i class=\"fas fa-headphones-alt\"></i>"
  183. },
  184. {
  185. "types": [
  186. "healthcare=birthing_centre",
  187. "healthcare=birthing_center"
  188. ],
  189. "sign": "<i class=\"fas fa-baby\"></i>"
  190. },
  191. {
  192. "types": [
  193. "healthcare=dialysis"
  194. ],
  195. "sign": ""
  196. },
  197. {
  198. "types": [
  199. "healthcare=laboratory"
  200. ],
  201. "sign": "<i class=\"fas fa-vials\"></i>"
  202. },
  203. {
  204. "types": [
  205. "healthcare=midwife"
  206. ],
  207. "sign": ""
  208. },
  209. {
  210. "types": [
  211. "healthcare=nutrition_counseling"
  212. ],
  213. "sign": "<i class=\"fas fa-carrot\"></i>"
  214. },
  215. {
  216. "types": [
  217. "healthcare=occupational_therapist"
  218. ],
  219. "sign": ""
  220. },
  221. {
  222. "types": [
  223. "healthcare=optometrist"
  224. ],
  225. "sign": "<i class=\"fas fa-eye\"></i>"
  226. },
  227. {
  228. "types": [
  229. "healthcare=podiatrist"
  230. ],
  231. "sign": ""
  232. },
  233. {
  234. "types": [
  235. "healthcare=rehabilitation"
  236. ],
  237. "sign": "<i class=\"fas fa-crutch\"></i>"
  238. },
  239. {
  240. "types": [
  241. "healthcare=speech_therapist"
  242. ],
  243. "sign": ""
  244. }
  245. ],
  246. "filter": {
  247. "type": {
  248. "name": "{{ trans('filter:type') }}",
  249. "show_default": "true",
  250. "type": "select",
  251. "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 %}"
  252. }
  253. }
  254. }