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.

223 lines
8.3 KiB

2 years ago
2 years ago
  1. name:
  2. ca: Corregeix-me
  3. en: Fix Me
  4. fr: Améliorez-moi
  5. hu: Javíts ki! / Fix me
  6. it: Correggimi
  7. pl: Popraw mnie
  8. pt-br: Corrija-me
  9. pt: Corrige-me
  10. tr: Beni Geliştirin
  11. type: overpass
  12. query:
  13. 14: nwr[~"^fixme(:.*|)$"~".",i]
  14. feature:
  15. pre: |
  16. {% set fixme = tags.fixme %}
  17. {% set category = null %}
  18. {% if not fixme %}
  19. {% for k, v in tags %}
  20. {% set m = k|matches('^fixme(:(.*))?$', 'i') %}
  21. {% if m %}
  22. {% set fixme = v %}
  23. {% set category = m[2] %}
  24. {% endif %}
  25. {% endfor %}
  26. {% endif %}
  27. {% if not category %}
  28. {% for k, d in const.fixme if d.match %}
  29. {% if fixme|matches(d.match, 'i') %}
  30. {% set category = k %}
  31. {% endif %}
  32. {% endfor %}
  33. {% endif %}
  34. details: |
  35. {{ fixme }}
  36. description: |
  37. {% set found = false %}
  38. {% for k in ['amenity', 'shop', 'telecom', 'waterway', 'craft', 'highway', 'railway', 'aerialway', 'emergency', 'geological', 'man_made', 'natural', 'office', 'power', 'aeroway', 'tourism', 'leisure', 'military', 'landuse', 'barrier', 'route'] if not found %}
  39. {% if attribute(tags, k) and attribute(tags, k) != 'yes' %}
  40. {{ tagTransList(k, attribute(tags, k)) }}
  41. {% set found = true %}
  42. {% endif %}
  43. {% endfor %}
  44. {% if found %}{# nothing #}
  45. {% elseif tags.building and tags.building != 'yes' %}
  46. {{ tagTransList('building', tags.building) }}
  47. {% elseif tags.historic and tags.historic not in ['heritage', 'yes', 'building'] %}
  48. {{ tagTransList('historic', tags.historic) }}
  49. {% elseif tags.building == 'yes' or tags.historic == 'building' %}
  50. {{ keyTrans('building') }}
  51. {% elseif tags.boundary %}
  52. {{ tagTrans('boundary', tags.boundary) }}
  53. {% endif %}
  54. body: |
  55. {{ fixme == 'yes' ? keyTrans('fixme') : fixme }}
  56. markerSymbol: |
  57. {{ markerPointer({ fillColor: const.fixme[category].color|default('#f2756a') }) }}
  58. listMarkerSymbol: |
  59. {{ markerCircle({ fillColor: const.fixme[category].color|default('#f2756a') }) }}
  60. filter:
  61. category:
  62. name: Category
  63. show_default: true
  64. type: select
  65. values: |
  66. {% for k, d in const.fixme %}
  67. <option value='{{ k }}' query='{{ d.query|default('nwr[~"fixme(:.*|)"~"' ~ d.match ~ '"') }},i]'>{{ tagTrans('fixme', k) }}</option>
  68. {% endfor %}
  69. type:
  70. name: Type
  71. show_default: true
  72. type: select
  73. values: |
  74. {% for k, d in const.types %}
  75. <option value='{{ k }}' query='{{ d.query }}'>{{ d.title|matches('^repo/') ? repoTrans(d.title|slice(5)) : trans(d.title) }}</option>
  76. {% endfor %}
  77. info: |
  78. <table>
  79. <tr>
  80. <td>{{ markerCircle({ fillColor: '#f2756a' }) }}</td>
  81. <td>{{ trans('other') }}</td>
  82. </tr>
  83. {% for k, d in const.fixme %}
  84. <tr>
  85. <td>{{ markerCircle({ fillColor: d.color }) }}</td>
  86. <td>{{ tagTrans('fixme', k) }}</td>
  87. </tr>
  88. {% endfor %}
  89. </table>
  90. const:
  91. fixme:
  92. name:
  93. match: 'name'
  94. query: '(nwr[~"fixme:name"~".",i];nwr[~"fixme(:.*|)"~"name",i];)'
  95. color: '#00b6a9'
  96. incomplete:
  97. match: '(continue|incomplete|unfinished)'
  98. color: '#bb972f'
  99. position:
  100. match: '(position|location)'
  101. color: '#71ab43'
  102. addr:
  103. match: 'addr'
  104. query: '(nwr["fixme:addr"];nwr[fixme~"addr",i];)'
  105. color: '#0070b6'
  106. maxspeed:
  107. match: 'maxspeed'
  108. query: '(nwr["fixme:maxspeed"];nwr[fixme~"maxspeed",i];)'
  109. color: '#a36af2'
  110. resurvey:
  111. match: 're-?survey'
  112. color: '#00b647'
  113. verify:
  114. match: '(verify|recheck)'
  115. color: '#eeb600'
  116. import:
  117. match: 'import'
  118. color: '#a6b600'
  119. types:
  120. shops:
  121. title: 'tag:shop'
  122. query: 'nwr[shop]'
  123. craft:
  124. title: 'tag:craft'
  125. query: 'nwr[craft]'
  126. tourism:
  127. title: 'tag:tourism'
  128. query: 'nwr[tourism]'
  129. roads:
  130. title: 'tag:highway'
  131. query: 'nwr[highway]'
  132. gastro:
  133. title: 'repo/category:gastro'
  134. query: 'nwr[amenity~"^(bar|biergarten|cafe|fast_food|food_court|ice_cream|pub|restaurant)$"]'
  135. agriculture:
  136. title: 'repo/category:agriculture'
  137. query: 'nwr[landuse~"^(allotments|farm|farmland|farmyard|greenhouse_horticulture|orchard|vineyard)$"]'
  138. buildings:
  139. title: 'repo/category:buildings'
  140. query: '(nwr[building];nwr[entrance];)'
  141. transport_car:
  142. title: 'repo/category:transport_car'
  143. query: 'nwr[amenity~"^(car_rental|car_sharing|car_wash|fuel|motorcycle_parking|parking)$"];'
  144. children:
  145. title: 'repo/category:children'
  146. query: '(nwr[leisure~"^(playground|summer_camp|indoor_play)$"];nwr[shop~"^(baby_goods|toys)$"];nwr[changing_table];nwr[diaper];nwr[kids_area];nwr[playground];)'
  147. sport:
  148. title: 'tag:sport'
  149. query: '(nwr[sport];nwr[climbing];nwr[highway~"^(via_ferrata)$"];nwr[leisure~"^(sports_.*)$"];)'
  150. industrial:
  151. title: 'tag:landuse=industrial'
  152. query: '(nwr[landuse~"^(quarry|industrial)$"];nwr[man_made~"^(mineshaft|pipeline|goods_conveyor)$"];)'
  153. power:
  154. title: 'repo/category:electric_power'
  155. query: '(nwr[power];relation[type=route][route=power];)'
  156. communication:
  157. title: 'repo/category:communication'
  158. query: '(nwr[amenity~"^(post_office|internet_cafe|post_box|parcel_locker|telephone)$"];nwr[office~"^(telecommunication|it|newspaper|publisher|advertising_agency)$"];nwr[vending~"parcel"];)'
  159. construction:
  160. title: 'repo/category:construction'
  161. query: '(nwr[~"."~"^(construction)$"];nwr[~"^construction:"~"."];)'
  162. culture:
  163. title: 'repo/category:culture'
  164. query: '(nwr[amenity~"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$"];nwr[tourism~"^(artwork|gallery|museum|theme_park)$"];nwr[amenity~"^(clock)$"];nwr[shop~"^(art)$"];)'
  165. bicycle:
  166. title: 'repo/category:transport_cycle'
  167. query: '(nwr[amenity~"^(bicycle_.*|compressed_air|charging_station)$"];nwr[shop~"^(bicycle)$"];nwr["monitoring:bicycle"];nwr[vending~"^bicycle_"];relation[type=route][route~"^(|.*;)bicycle(|;.*)$"];)'
  168. education:
  169. title: 'repo/category:education'
  170. query: '(nwr[amenity~"^(college|university|library|school|kindergarten|language_school|childcare|public_bookcase)$"];nwr[office~"^(educational_institution|research)$"];)'
  171. emergency:
  172. title: 'repo/category:emergency'
  173. query: '(nwr[amenity~"^(fire_station|hospital|police)$"];nwr[emergency];nwr[highway~"^(emergency_access_point)$"];)'
  174. financial:
  175. title: 'repo/category:financial'
  176. query: '(nwr[amenity~"^(bank|bureau_de_change|atm)$"];nwr[office~"^(financial|accountant|insurance|tax|tax_advisor)$"];)'
  177. health:
  178. title: 'repo/category:health'
  179. query: '(nwr[amenity~"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$"];nwr[healthcare];)'
  180. heritage:
  181. title: 'repo/category:heritage'
  182. query: 'nwr[heritage]'
  183. walking:
  184. title: 'repo/category:transport_walk'
  185. query: '(nwr[amenity~"^(bench|shelter)$"];relation[type=route][route~"^(|.*;)hiking(|;.*)$"];nwr[highway~"^(footway|path|pedestrian|elevator|steps|crossing)$"];)'
  186. historic:
  187. title: 'tag:historic'
  188. query: 'nwr[historic]'
  189. law:
  190. title: 'repo/category:law'
  191. query: 'nwr[amenity~"^(courthouse)$"];nwr[office~"^(lawyer|notary)$"];)'
  192. leisure:
  193. title: 'tag:leisure'
  194. query: 'nwr[leisure]'
  195. memorial:
  196. title: 'repo/category:memorial'
  197. query: 'nwr[historic~"^(memorial|monument|wayside_(cross|shrine|chapel))$"]'
  198. military:
  199. title: 'repo/category:military'
  200. query: '(nwr[military];nwr[landuse=military];)'
  201. natural:
  202. title: 'repo/category:natural'
  203. query: '(nwr[natural];nwr[place~"^(island|islet)$"];)'
  204. office:
  205. title: 'repo/category:office'
  206. query: 'nwr[office]'
  207. places:
  208. title: 'tag:place'
  209. query: 'node[place]'
  210. public:
  211. title: 'repo/category:public'
  212. query: '(nwr[amenity~"^(embassy|public_building|townhall|clock|drinking_water|recycling|toilets)$"];node[drinking_water];nwr[office~"^(government|administration)$"];)'
  213. railway:
  214. title: 'tag:railway'
  215. query: '(nwr[railway];relation[type=route][route=railway];)'
  216. religion:
  217. title: 'tag:religion'
  218. query: '(nwr[amenity~"^(place_of_worship|grave_yard|crematorium)$"];nwr[landuse~"^(cemetery)$"];nwr[historic~"wayside_(cross|shrine|chapel)$"];nwr[office~\"^(parish|religion)$\"];)'
  219. landuse:
  220. title: 'tag:landuse'
  221. query: 'nwr[landuse]'