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.

611 lines
22 KiB

  1. query:
  2. 15: |
  3. (
  4. way[highway~"^(footway|pedestrian|steps|path|platform)$"];
  5. way[highway=cycleway][foot~"^(yes|designated)$"];
  6. way[footway];
  7. way["area:highway"~"^(footway|pedestrian|steps|path|platform|sidewalk)$"];
  8. relation["area:highway"~"^(footway|pedestrian|steps|path|platform|sidewalk)$"];
  9. way[sidewalk~"^(yes|both|left|right|no|separate|none)$"];
  10. way["sidewalk:left"~"(yes|no|separate)$"];
  11. way["sidewalk:right"~"(yes|no|separate)$"];
  12. way["sidewalk:both"~"(yes|no|separate)$"];
  13. nwr["railway"="platform"];
  14. node[highway=crossing];
  15. )
  16. feature:
  17. pre: |
  18. {% set sides = ['default'] %}
  19. {% set sidewalk_left = null %}{% set sidewalk_right = null %}
  20. {% set cycleway = false %}
  21. {% set category = tags.highway %}
  22. {% if attribute(tags, 'sidewalk:both') == 'yes' or tags.sidewalk in ['yes', 'both', 'left', 'both', 'right'] or tags.footway == 'sidewalk' %}
  23. {% set category = 'sidewalk' %}
  24. {% endif %}
  25. {% if tags.highway in ['pedestrian', 'footway','steps','path','cycleway','platform'] %}
  26. {% set sides = sides|merge(['main']) %}
  27. {% endif %}
  28. {% if tags.highway in ['cycleway'] %}
  29. {% set category = 'footway' %}
  30. {% set cycleway = true %}
  31. {% set sides = sides|merge(['cycleway']) %}
  32. {% endif %}
  33. {% if tags.bicycle in ['yes', 'designated'] %}
  34. {% set cycleway = true %}
  35. {% set sides = sides|merge(['cycleway']) %}
  36. {% endif %}
  37. {% if attribute(tags, 'area:highway') in ['footway'] %}
  38. {% set sides = sides|merge(['main']) %}
  39. {% set category = attribute(tags, 'area:highway') %}
  40. {% endif %}
  41. {% if tags.railway in ['platform'] %}
  42. {% set sides = sides|merge(['main']) %}
  43. {% set category = 'platform' %}
  44. {% endif %}
  45. {% if tags.footway == 'crossing' %}
  46. {% set category = 'crossing' %}
  47. {% endif %}
  48. {% if tags.sidewalk in ['no', 'none'] %}
  49. {% set sidewalk_left = 'no' %}
  50. {% set sidewalk_right = 'no' %}
  51. {% set sides = sides|merge(['leftr', 'rightr']) %}
  52. {% endif %}
  53. {% if tags.sidewalk == 'separate' %}
  54. {% set sidewalk_left = 'separate' %}
  55. {% set sidewalk_right = 'separate' %}
  56. {% set sides = sides|merge(['leftr', 'rightr']) %}
  57. {% endif %}
  58. {% if attribute(tags, 'sidewalk:both') %}
  59. {% set sidewalk_left = attribute(tags, 'sidewalk:both') %}
  60. {% set sides = sides|merge(['leftr', 'rightr']) %}
  61. {% endif %}
  62. {% if attribute(tags, 'sidewalk:left') %}
  63. {% set sidewalk_left = attribute(tags, 'sidewalk:left') %}
  64. {% set sides = sides|merge(['leftr']) %}
  65. {% endif %}
  66. {% if attribute(tags, 'sidewalk:left') == 'yes' or attribute(tags, 'sidewalk:both') == 'yes' or tags.sidewalk in ['left', 'both'] %}
  67. {% set sidewalk_left = 'yes' %}
  68. {% set sides = sides|merge(['leftr', 'left']) %}
  69. {% endif %}
  70. {% if attribute(tags, 'sidewalk:right') %}
  71. {% set sidewalk_right = attribute(tags, 'sidewalk:right') %}
  72. {% set sides = sides|merge(['rightr']) %}
  73. {% endif %}
  74. {% if attribute(tags, 'sidewalk:right') == 'yes' or attribute(tags, 'sidewalk:both') == 'yes' or tags.sidewalk in ['right', 'both'] %}
  75. {% set sidewalk_right = 'yes' %}
  76. {% set sides = sides|merge(['rightr', 'right']) %}
  77. {% endif %}
  78. {% if type == 'node' %}
  79. {% set sides = ['node'] %}
  80. {% endif %}
  81. description: |
  82. {% if tags.footway %}
  83. {{ tagTrans('footway', tags.footway) }}
  84. {% elseif tags.highway %}
  85. {% if tags.highway in ['path', 'cycleway'] and tags.segregated %}
  86. {{ tagTrans('highway', 'cycleway segregated=' ~ tags.segregated) }}
  87. {% else %}
  88. {{ tagTrans('highway', tags.highway) }}
  89. {% endif %}
  90. {% elseif tags.railway %}
  91. {{ tagTrans('railway', tags.railway) }}
  92. {% elseif attribute(tags, 'area:highway') %}
  93. {{ tagTrans('highway', attribute(tags, 'area:highway')) }}
  94. {% endif %}
  95. body: |
  96. <ul>
  97. {% if 'main' in sides or 'node' in sides %}
  98. {% if tags.crossing %}<li>
  99. <span class='key'>{{ keyTrans('crossing') }}:</span>
  100. <span class='value'>{{ tagTrans('crossing', tags.crossing) }}</span>
  101. </li>{% endif %}
  102. {% if tags.width %}<li>
  103. <span class='key'>{{ keyTrans('width') }}:</span>
  104. <span class='value'>{{ tags.width|formatUnit }}</span>
  105. </li>{% endif %}
  106. {% if tags.wheelchair %}<li>
  107. <span class='key'>{{ keyTrans('wheelchair') }}:</span>
  108. <span class='value'>{{ tagTrans('wheelchair', tags.wheelchair) }}</span>
  109. </li>{% endif %}
  110. {% if tags.surface %}<li>
  111. <span class='key'>{{ keyTrans('surface') }}:</span>
  112. <span class='value'>{{ tagTrans('surface', tags.surface) }}</span>
  113. </li>{% endif %}
  114. {% if tags.tactile_paving %}<li>
  115. <span class='key'>{{ keyTrans('tactile_paving') }}:</span>
  116. <span class='value'>{{ tagTrans('tactile_paving', tags.tactile_paving) }}</span>
  117. </li>{% endif %}
  118. {% if tags.smoothness %}<li>
  119. <span class='key'>{{ keyTrans('smoothness') }}:</span>
  120. <span class='value'>{{ tagTrans('smoothness', tags.smoothness) }}</span>
  121. </li>{% endif %}
  122. {% set v = tags.incline %}
  123. {% if v %}<li>
  124. <span class='key'>{{ keyTrans('incline') }}:</span>
  125. <span class='value'>{{ v in ['up', 'down', 'yes'] ? tagTrans('incline', v) : v }}</span>
  126. </li>{% endif %}
  127. {% endif %}
  128. {% if attribute(tags, 'sidewalk:left')|default(attribute(tags, 'sidewalk:both')) or tags.sidewalk in ['left', 'both'] %}
  129. <li>{{ keyTrans('sidewalk:left') }}:<ul>
  130. <li>{{ tagTrans('sidewalk', attribute(tags, 'sidewalk:left')|default(attribute(tags, 'sidewalk:both'))) }}</li>
  131. {% if attribute(tags, 'sidewalk:left:width')|default(attribute(tags, 'sidewalk:both:width')) %}<li>
  132. <span class='key'>{{ keyTrans('width') }}:</span>
  133. <span class='value'>{{ attribute(tags, 'sidewalk:left:width')|default(attribute(tags, 'sidewalk:both:width'))|formatUnit }}</span>
  134. </li>{% endif %}
  135. {% if attribute(tags, 'sidewalk:left:wheelchair')|default(attribute(tags, 'sidewalk:both:wheelchair')) %}<li>
  136. <span class='key'>{{ keyTrans('wheelchair') }}:</span>
  137. <span class='value'>{{ tagTrans('wheelchair', attribute(tags, 'sidewalk:left:wheelchair')|default(attribute(tags, 'sidewalk:both:wheelchair'))) }}</span>
  138. </li>{% endif %}
  139. {% if attribute(tags, 'sidewalk:left:surface')|default(attribute(tags, 'sidewalk:both:surface')) %}<li>
  140. <span class='key'>{{ keyTrans('surface') }}:</span>
  141. <span class='value'>{{ tagTrans('surface', attribute(tags, 'sidewalk:left:surface')|default(attribute(tags, 'sidewalk:both:surface'))) }}</span>
  142. </li>{% endif %}
  143. {% if attribute(tags, 'sidewalk:left:tactile_paving') %}<li>
  144. <span class='key'>{{ keyTrans('tactile_paving') }}:</span>
  145. <span class='value'>{{ tagTrans('tactile_paving', attribute(tags, 'sidewalk:left:tactile_paving')|default(attribute(tags, 'sidewalk:both:tactile_paving'))) }}</span>
  146. </li>{% endif %}
  147. {% if attribute(tags, 'sidewalk:left:smoothness')|default(attribute(tags, 'sidewalk:both:smoothness')) %}<li>
  148. <span class='key'>{{ keyTrans('smoothness') }}:</span>
  149. <span class='value'>{{ tagTrans('smoothness', attribute(tags, 'sidewalk:left:smoothness')|default(attribute(tags, 'sidewalk:both:smoothness'))) }}</span>
  150. </li>{% endif %}
  151. {% set v = attribute(tags, 'sidewalk:left:incline')|default(attribute(tags, 'sidewalk:both:incline'))|default(tags.incline) %}
  152. {% if v %}<li>
  153. <span class='key'>{{ keyTrans('incline') }}:</span>
  154. <span class='value'>{{ v in ['up', 'down', 'yes'] ? tagTrans('incline', v) : v }}</span>
  155. </li>{% endif %}
  156. </ul></li>
  157. {% endif %}
  158. {% if attribute(tags, 'sidewalk:right')|default(attribute(tags, 'sidewalk:both')) or tags.sidewalk in ['right', 'both'] %}
  159. <li>{{ keyTrans('sidewalk:right') }}:<ul>
  160. <li>{{ tagTrans('sidewalk', attribute(tags, 'sidewalk:right')|default(attribute(tags, 'sidewalk:both'))) }}</li>
  161. {% if attribute(tags, 'sidewalk:right:width')|default(attribute(tags, 'sidewalk:both:width')) %}<li>
  162. <span class='key'>{{ keyTrans('width') }}:</span>
  163. <span class='value'>{{ attribute(tags, 'sidewalk:right:width')|default(attribute(tags, 'sidewalk:both:width'))|formatUnit }}</span>
  164. </li>{% endif %}
  165. {% if attribute(tags, 'sidewalk:right:wheelchair')|default(attribute(tags, 'sidewalk:both:wheelchair')) %}<li>
  166. <span class='key'>{{ keyTrans('wheelchair') }}:</span>
  167. <span class='value'>{{ tagTrans('wheelchair', attribute(tags, 'sidewalk:right:wheelchair')|default(attribute(tags, 'sidewalk:both:wheelchair'))) }}</span>
  168. </li>{% endif %}
  169. {% if attribute(tags, 'sidewalk:right:surface')|default(attribute(tags, 'sidewalk:both:surface')) %}<li>
  170. <span class='key'>{{ keyTrans('surface') }}:</span>
  171. <span class='value'>{{ tagTrans('surface', attribute(tags, 'sidewalk:right:surface')|default(attribute(tags, 'sidewalk:both:surface'))) }}</span>
  172. </li>{% endif %}
  173. {% if attribute(tags, 'sidewalk:right:tactile_paving') %}<li>
  174. <span class='key'>{{ keyTrans('tactile_paving') }}:</span>
  175. <span class='value'>{{ tagTrans('tactile_paving', attribute(tags, 'sidewalk:right:tactile_paving')|default(attribute(tags, 'sidewalk:both:tactile_paving'))) }}</span>
  176. </li>{% endif %}
  177. {% if attribute(tags, 'sidewalk:right:smoothness')|default(attribute(tags, 'sidewalk:both:smoothness')) %}<li>
  178. <span class='key'>{{ keyTrans('smoothness') }}:</span>
  179. <span class='value'>{{ tagTrans('smoothness', attribute(tags, 'sidewalk:right:smoothness')|default(attribute(tags, 'sidewalk:both:smoothness'))) }}</span>
  180. </li>{% endif %}
  181. {% set v = attribute(tags, 'sidewalk:right:incline')|default(attribute(tags, 'sidewalk:both:incline'))|default(tags.incline) %}
  182. {% if i %}<li>
  183. <span class='key'>{{ keyTrans('incline') }}:</span>
  184. <span class='value'>{{ v in ['up', 'down', 'yes'] ? tagTrans('incline', v) : v }}</span>
  185. </li>{% endif %}
  186. </ul></li>
  187. {% endif %}
  188. </ul>
  189. markerSymbol: ""
  190. listMarkerSymbol: |
  191. {% if tags.area == 'yes' or attribute(tags, 'area:highway') %}
  192. polygon
  193. {% elseif 'node' in sides %}
  194. {{ markerCircle({ width: 0, radius: 5, fillOpacity: 1, fill: true, color: const.categories[category].color }) }}
  195. {% else %}
  196. {{ markerLine({
  197. 'styles': sides|join(','),
  198. 'style:main': {
  199. width: cycleway and tags.segregated == 'yes' ? 2 : const.categories[category].width|default(3),
  200. color: const.categories[category].color,
  201. dashArray: tags.highway == 'steps' ? '3,3' :
  202. cycleway and tags.segregated != 'yes' ? '8,8' :
  203. '',
  204. lineCap: tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') ? 'butt' : 'round',
  205. offset: cycleway and tags.segregated == 'yes' ? 1 : 0
  206. },
  207. 'style:cycleway': {
  208. fill: false,
  209. width: cycleway and tags.segregated == 'yes' ? 2 : 3,
  210. color: const.categories.cycleway.color,
  211. dashArray: cycleway and tags.segregated != 'yes' ? '8,8' : '',
  212. dashOffset: 8,
  213. lineCap: cycleway and tags.segregated != 'yes' ? 'butt' : 'round',
  214. offset: cycleway and tags.segregated == 'yes' ? -1 : 0
  215. },
  216. 'style:left': {
  217. width: 3,
  218. offset: -6,
  219. color: const.categories.sidewalk.color
  220. },
  221. 'style:right': {
  222. width: 3,
  223. offset: 6,
  224. color: const.categories.sidewalk.color
  225. },
  226. 'style:leftr': {
  227. width: sidewalk_left ? 5 : 0,
  228. offset: -2.5,
  229. opacity: 0.3,
  230. dashArray: '1,10',
  231. lineCap: butt,
  232. color: sidewalk_left in ['no', 'none'] ? '#000000' : const.categories.sidewalk.color
  233. },
  234. 'style:rightr': {
  235. width: sidewalk_right ? 5 : 0,
  236. offset: 2.5,
  237. opacity: 0.3,
  238. dashArray: '1,10',
  239. lineCap: butt,
  240. color: sidewalk_left in ['no', 'none'] ? '#000000' : const.categories.sidewalk.color
  241. },
  242. }) }}
  243. {% endif %}
  244. style:
  245. opacity: 0
  246. fillOpacity: 0
  247. width: 5
  248. style:node:
  249. width: 0
  250. radius: 5
  251. fillOpacity: 1
  252. fill: true
  253. color: |
  254. {{ const.categories[category].color }}
  255. style:main:
  256. fill: |
  257. {% if tags.area == 'yes' or attribute(tags, 'area:highway') %}true{% else %}false{% endif %}
  258. width: |
  259. {% if attribute(tags, 'area:highway') %}
  260. 0
  261. {% elseif tags.area == 'yes' %}
  262. 1
  263. {% elseif cycleway and tags.segregated == 'yes' %}
  264. 2
  265. {% else %}
  266. {{ const.categories[category].width|default(3) }}
  267. {% endif %}
  268. color: |
  269. {{ const.categories[category].color }}
  270. dashArray: |
  271. {% if tags.highway == 'steps' %}
  272. 3,3
  273. {% elseif cycleway and tags.segregated != 'yes' %}
  274. 8,8
  275. {% endif %}
  276. lineCap: |
  277. {% if tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') %}butt{% else %}round{% endif %}
  278. offset: |
  279. {% if cycleway and tags.segregated == 'yes' %}1{% else %}0{% endif %}
  280. style:cycleway:
  281. fill: false
  282. width: |
  283. {% if cycleway and tags.segregated == 'yes' %}
  284. 2
  285. {% else %}
  286. 3
  287. {% endif %}
  288. color: |
  289. {{ const.categories.cycleway.color }}
  290. dashArray: |
  291. {% if cycleway and tags.segregated != 'yes' %}
  292. 8,8
  293. {% endif %}
  294. dashOffset: 8
  295. lineCap: |
  296. {% if cycleway and tags.segregated != 'yes' %}butt{% else %}round{% endif %}
  297. offset: |
  298. {% if cycleway and tags.segregated == 'yes' %}-1{% else %}0{% endif %}
  299. style:left:
  300. fill: false
  301. width: 3
  302. offset: |
  303. {{ -5 / map.metersPerPixel }}
  304. color: |
  305. {{ const.categories.sidewalk.color }}
  306. style:right:
  307. fill: false
  308. width: 3
  309. offset: |
  310. {{ 5 / map.metersPerPixel }}
  311. color: |
  312. {{ const.categories.sidewalk.color }}
  313. style:leftr:
  314. fill: false
  315. width: |
  316. {{ sidewalk_left ? 5 / map.metersPerPixel : 0 }}
  317. offset: |
  318. {{ -2.5 / map.metersPerPixel }}
  319. opacity: 0.3
  320. dashArray: '1,10'
  321. lineCap: butt
  322. color: |
  323. {{ sidewalk_left in ['no', 'none'] ? '#000000' : const.categories.sidewalk.color }}
  324. style:rightr:
  325. fill: false
  326. width: |
  327. {{ sidewalk_right ? 5 / map.metersPerPixel : 0 }}
  328. offset: |
  329. {{ 2.5 / map.metersPerPixel }}
  330. opacity: 0.3
  331. dashArray: '1,10'
  332. lineCap: butt
  333. color: |
  334. {{ sidewalk_right in ['no', 'none'] ? '#000000' : const.categories.sidewalk.color }}
  335. styles: |
  336. {{ sides|join(',') }}
  337. info: |
  338. <table>
  339. {% for k, d in const.categories if k != 'cycleway' %}
  340. <tr>
  341. <td>{{ markerLine({
  342. width: d.width|default(3),
  343. color: d.color,
  344. dashArray: d.dashArray
  345. }) }}</td>
  346. <td>{{ tagTrans(d.key|default('highway'), k) }}</td>
  347. </tr>
  348. {% endfor %}
  349. <tr>
  350. <td>{{ markerPolygon({
  351. styles: 'default',
  352. style: {
  353. width: 1,
  354. color: const.categories.footway.color,
  355. fillColor: const.categories.footway.color
  356. }
  357. }) }}</td>
  358. <td>{{ tagTrans('highway', 'footway') }} ({{ keyTrans('area') }})</td>
  359. </tr>
  360. <tr>
  361. <td>
  362. <svg anchorx="13" anchory="8" width="25" height="19">
  363. <rect x="3" y="0" width="18" height="19" style="stroke-width: 0;fill: #ab00ff;fill-opacity: 0.2;"></rect>
  364. <line x1="3" y1="10" x2="21" y2="10" style="stroke: #ab00ff;stroke-width: 3;stroke-dasharray: undefined;stroke-dasharray: undefined;fill: #ab00ff;fill-opacity: 0.2;"></line>
  365. </svg>
  366. </td>
  367. <td>{{ tagTrans('highway', 'footway') }} ({{ keyTrans('area:highway') }})</td>
  368. </tr>
  369. <tr>
  370. <td>{{ markerCircle({
  371. width: 0,
  372. radius: 5,
  373. fillOpacity: 1,
  374. fill: true,
  375. color: const.categories.crossing.color
  376. }) }}</td>
  377. <td>{{ tagTrans('highway', 'crossing') }}</td>
  378. </tr>
  379. <tr>
  380. <td>{{ markerLine({
  381. styles: 'default,foot',
  382. style: {
  383. width: 4,
  384. color: const.categories.cycleway.color,
  385. dashArray: '8,8'
  386. },
  387. 'style:foot': {
  388. width: 4,
  389. color: const.categories.footway.color,
  390. dashArray: '8,8',
  391. dashOffset: 8
  392. }
  393. }) }}</td>
  394. <td>{{ tagTrans('highway', 'cycleway segregated=no') }}</td>
  395. </tr>
  396. <tr>
  397. <td>{{ markerLine({
  398. styles: 'default,foot',
  399. style: {
  400. width: 2,
  401. color: const.categories.cycleway.color,
  402. offset: -1
  403. },
  404. 'style:foot': {
  405. width: 2,
  406. color: const.categories.footway.color,
  407. offset: 1
  408. }
  409. }) }}</td>
  410. <td>{{ tagTrans('highway', 'cycleway segregated=yes') }}</td>
  411. </tr>
  412. {% for k, d in const.sidewalks %}
  413. <tr>
  414. <td>{{ markerLine({
  415. styles: d.styles,
  416. 'style:leftr': {
  417. width: 9,
  418. offset: -1,
  419. opacity: 0.3,
  420. dashArray: '1,10',
  421. lineCap: butt,
  422. color: d.color
  423. },
  424. 'style:left': {
  425. width: 3,
  426. offset: -7,
  427. color: d.color
  428. }
  429. }) }}</td>
  430. <td>{{ tagTrans('sidewalk', k) }}</td>
  431. </tr>
  432. {% endfor %}
  433. </table>
  434. filter:
  435. access:
  436. name: '{{ keyTrans("access") }}'
  437. type: select
  438. placeholder: '<{{ trans("any value") }}>'
  439. valueName: '{{ tagTrans("access", value) }}'
  440. values:
  441. 'yes': {}
  442. private: {}
  443. permissive: {}
  444. customers: {}
  445. discouraged: {}
  446. '!':
  447. name: <{{ trans('empty value') }}>
  448. query: nwr[!access]
  449. weight: -3
  450. '?':
  451. name: <{{ trans("other") }}>
  452. query: nwr[access]["access"!~"^(public|private|permissive|customers|discouraged|unknown|yes)$"]
  453. weight: -2
  454. unknown:
  455. name: '<{{ trans("unknown") }}>'
  456. query: nwr["access"="unknown"]
  457. weight: -1
  458. surface:
  459. name: '{{ keyTrans("surface") }}'
  460. type: select
  461. placeholder: '<{{ trans("any value") }}>'
  462. valueName: '{{ tagTrans("surface", value) }}'
  463. query: '(nwr[surface="{{ value }}"];nwr[~"sidewalk:(left|right|both):surface"~"{{ value }}"];)'
  464. values:
  465. acrylic: {}
  466. artificial_turf: {}
  467. asphalt: {}
  468. carpet: {}
  469. chipseal: {}
  470. clay: {}
  471. cobblestone: {}
  472. compacted: {}
  473. concrete: {}
  474. concrete:lanes: {}
  475. concrete:plates: {}
  476. dirt: {}
  477. earth: {}
  478. fine_gravel: {}
  479. grass: {}
  480. grass_paver: {}
  481. gravel: {}
  482. ground: {}
  483. ice: {}
  484. metal: {}
  485. metal_grid: {}
  486. mud: {}
  487. paved: {}
  488. paving_stones: {}
  489. pebblestone: {}
  490. rock: {}
  491. rubber: {}
  492. salt: {}
  493. sand: {}
  494. sett: {}
  495. snow: {}
  496. stepping_stones: {}
  497. tartan: {}
  498. unhewn_cobblestone: {}
  499. unpaved: {}
  500. wood: {}
  501. woodchips: {}
  502. '!':
  503. name: <{{ trans('empty value') }}>
  504. query: |
  505. (
  506. nwr[!"surface"];
  507. nwr["sidewalk:left"="yes"][!"sidewalk:left:surface"];
  508. nwr["sidewalk:right"="yes"][!"sidewalk:right:surface"];
  509. nwr["sidewalk:both"="yes"][!"sidewalk:both:surface"][!"sidewalk:left:surface"];
  510. nwr["sidewalk:both"="yes"][!"sidewalk:both:surface"][!"sidewalk:right:surface"];
  511. nwr["sidewalk"="left"][!"sidewalk:left:surface"];
  512. nwr["sidewalk"="right"][!"sidewalk:right:surface"];
  513. nwr["sidewalk"="both"][!"sidewalk:both:surface"][!"sidewalk:left:surface"];
  514. nwr["sidewalk"="both"][!"sidewalk:both:surface"][!"sidewalk:right:surface"];
  515. )
  516. weight: -3
  517. '?':
  518. name: <{{ trans("other") }}>
  519. query: nwr[surface]["surface"!~"^(acrylic|artificial_turf|asphalt|carpet|chipseal|clay|cobblestone|compacted|concrete|concrete:lanes|concrete:plates|dirt|earth|fine_gravel|grass|grass_paver|gravel|ground|ice|metal|metal_grid|mud|paved|paving_stones|pebblestone|rock|rubber|salt|sand|sett|snow|stepping_stones|tartan|unhewn_cobblestone|unpaved|wood|woodchips)$"]
  520. weight: -2
  521. unknown:
  522. name: '<{{ trans("unknown") }}>'
  523. weight: -1
  524. smoothness:
  525. name: '{{ keyTrans("smoothness") }}'
  526. type: select
  527. placeholder: '<{{ trans("any value") }}>'
  528. valueName: '{{ tagTrans("smoothness", value) }}'
  529. query: '(nwr[smoothness="{{ value }}"];nwr[~"sidewalk:(left|right|both):smoothness"~"{{ value }}"];)'
  530. values:
  531. bad: {}
  532. excellent: {}
  533. good: {}
  534. horrible: {}
  535. impassable: {}
  536. intermediate: {}
  537. very_bad: {}
  538. very_horrible: {}
  539. '!':
  540. name: <{{ trans('empty value') }}>
  541. query: |
  542. (
  543. nwr[!"smoothness"];
  544. nwr["sidewalk:left"="yes"][!"sidewalk:left:smoothness"];
  545. nwr["sidewalk:right"="yes"][!"sidewalk:right:smoothness"];
  546. nwr["sidewalk:both"="yes"][!"sidewalk:both:smoothness"][!"sidewalk:left:smoothness"];
  547. nwr["sidewalk:both"="yes"][!"sidewalk:both:smoothness"][!"sidewalk:right:smoothness"];
  548. nwr["sidewalk"="left"][!"sidewalk:left:smoothness"];
  549. nwr["sidewalk"="right"][!"sidewalk:right:smoothness"];
  550. nwr["sidewalk"="both"][!"sidewalk:both:smoothness"][!"sidewalk:left:smoothness"];
  551. nwr["sidewalk"="both"][!"sidewalk:both:smoothness"][!"sidewalk:right:smoothness"];
  552. )
  553. weight: -3
  554. '?':
  555. name: <{{ trans("other") }}>
  556. query: nwr[smoothness]["smoothness"!~"^(bad|excellent|good|horrible|impassable|intermediate|very_bad|very_horrible)$"]
  557. weight: -2
  558. unknown:
  559. name: '<{{ trans("unknown") }}>'
  560. weight: -1
  561. const:
  562. categories:
  563. sidewalk:
  564. color: '#ff007f'
  565. key: footway
  566. pedestrian:
  567. color: '#ff00c8'
  568. width: 5
  569. footway:
  570. color: '#ab00ff'
  571. path:
  572. color: '#ee922d'
  573. steps:
  574. color: '#ab00ff'
  575. dashArray: '3,3'
  576. crossing:
  577. color: '#964e00'
  578. cycleway:
  579. color: '#002aff'
  580. platform:
  581. key: railway
  582. color: '#00ff00'
  583. sidewalks:
  584. 'yes':
  585. color: '#ff007f'
  586. styles: 'leftr,left'
  587. 'separate':
  588. color: '#ff007f'
  589. styles: 'leftr'
  590. 'no':
  591. color: '#000000'
  592. styles: 'leftr'