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.

213 lines
8.1 KiB

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