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.

607 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' or (cycleway and tags.segregated != 'yes') ? '3,3' : '',
  202. lineCap: tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') ? 'butt' : 'round',
  203. offset: cycleway and tags.segregated == 'yes' ? 1 : 0
  204. },
  205. 'style:cycleway': {
  206. fill: false,
  207. width: cycleway and tags.segregated == 'yes' ? 2 : 3,
  208. color: const.categories.cycleway.color,
  209. dashArray: cycleway and tags.segregated != 'yes' ? '3,3' : '',
  210. dashOffset: 3,
  211. lineCap: cycleway and tags.segregated != 'yes' ? 'butt' : 'round',
  212. offset: cycleway and tags.segregated == 'yes' ? -1 : 0
  213. },
  214. 'style:left': {
  215. width: 3,
  216. offset: -6,
  217. color: const.categories.sidewalk.color
  218. },
  219. 'style:right': {
  220. width: 3,
  221. offset: 6,
  222. color: const.categories.sidewalk.color
  223. },
  224. 'style:leftr': {
  225. width: sidewalk_left ? 5 : 0,
  226. offset: -2.5,
  227. opacity: 0.3,
  228. dashArray: '1,10',
  229. lineCap: butt,
  230. color: sidewalk_left in ['no', 'none'] ? '#000000' : const.categories.sidewalk.color
  231. },
  232. 'style:rightr': {
  233. width: sidewalk_right ? 5 : 0,
  234. offset: 2.5,
  235. opacity: 0.3,
  236. dashArray: '1,10',
  237. lineCap: butt,
  238. color: sidewalk_left in ['no', 'none'] ? '#000000' : const.categories.sidewalk.color
  239. },
  240. }) }}
  241. {% endif %}
  242. style:
  243. opacity: 0
  244. fillOpacity: 0
  245. width: 5
  246. style:node:
  247. width: 0
  248. radius: 5
  249. fillOpacity: 1
  250. fill: true
  251. color: |
  252. {{ const.categories[category].color }}
  253. style:main:
  254. fill: |
  255. {% if tags.area == 'yes' or attribute(tags, 'area:highway') %}true{% else %}false{% endif %}
  256. width: |
  257. {% if attribute(tags, 'area:highway') %}
  258. 0
  259. {% elseif tags.area == 'yes' %}
  260. 1
  261. {% elseif cycleway and tags.segregated == 'yes' %}
  262. 2
  263. {% else %}
  264. {{ const.categories[category].width|default(3) }}
  265. {% endif %}
  266. color: |
  267. {{ const.categories[category].color }}
  268. dashArray: |
  269. {% if tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') %}
  270. 3,3
  271. {% endif %}
  272. lineCap: |
  273. {% if tags.highway == 'steps' or (cycleway and tags.segregated != 'yes') %}butt{% else %}round{% endif %}
  274. offset: |
  275. {% if cycleway and tags.segregated == 'yes' %}1{% else %}0{% endif %}
  276. style:cycleway:
  277. fill: false
  278. width: |
  279. {% if cycleway and tags.segregated == 'yes' %}
  280. 2
  281. {% else %}
  282. 3
  283. {% endif %}
  284. color: |
  285. {{ const.categories.cycleway.color }}
  286. dashArray: |
  287. {% if cycleway and tags.segregated != 'yes' %}
  288. 3,3
  289. {% endif %}
  290. dashOffset: 3
  291. lineCap: |
  292. {% if cycleway and tags.segregated != 'yes' %}butt{% else %}round{% endif %}
  293. offset: |
  294. {% if cycleway and tags.segregated == 'yes' %}-1{% else %}0{% endif %}
  295. style:left:
  296. fill: false
  297. width: 3
  298. offset: |
  299. {{ -5 / map.metersPerPixel }}
  300. color: |
  301. {{ const.categories.sidewalk.color }}
  302. style:right:
  303. fill: false
  304. width: 3
  305. offset: |
  306. {{ 5 / map.metersPerPixel }}
  307. color: |
  308. {{ const.categories.sidewalk.color }}
  309. style:leftr:
  310. fill: false
  311. width: |
  312. {{ sidewalk_left ? 5 / map.metersPerPixel : 0 }}
  313. offset: |
  314. {{ -2.5 / map.metersPerPixel }}
  315. opacity: 0.3
  316. dashArray: '1,10'
  317. lineCap: butt
  318. color: |
  319. {{ sidewalk_left in ['no', 'none'] ? '#000000' : const.categories.sidewalk.color }}
  320. style:rightr:
  321. fill: false
  322. width: |
  323. {{ sidewalk_right ? 5 / map.metersPerPixel : 0 }}
  324. offset: |
  325. {{ 2.5 / map.metersPerPixel }}
  326. opacity: 0.3
  327. dashArray: '1,10'
  328. lineCap: butt
  329. color: |
  330. {{ sidewalk_right in ['no', 'none'] ? '#000000' : const.categories.sidewalk.color }}
  331. styles: |
  332. {{ sides|join(',') }}
  333. info: |
  334. <table>
  335. {% for k, d in const.categories if k != 'cycleway' %}
  336. <tr>
  337. <td>{{ markerLine({
  338. width: d.width|default(3),
  339. color: d.color,
  340. dashArray: d.dashArray
  341. }) }}</td>
  342. <td>{{ tagTrans(d.key|default('highway'), k) }}</td>
  343. </tr>
  344. {% endfor %}
  345. <tr>
  346. <td>{{ markerPolygon({
  347. styles: 'default',
  348. style: {
  349. width: 1,
  350. color: const.categories.footway.color,
  351. fillColor: const.categories.footway.color
  352. }
  353. }) }}</td>
  354. <td>{{ tagTrans('highway', 'footway') }} ({{ keyTrans('area') }})</td>
  355. </tr>
  356. <tr>
  357. <td>
  358. <svg anchorx="13" anchory="8" width="25" height="19">
  359. <rect x="3" y="0" width="18" height="19" style="stroke-width: 0;fill: #ab00ff;fill-opacity: 0.2;"></rect>
  360. <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>
  361. </svg>
  362. </td>
  363. <td>{{ tagTrans('highway', 'footway') }} ({{ keyTrans('area:highway') }})</td>
  364. </tr>
  365. <tr>
  366. <td>{{ markerCircle({
  367. width: 0,
  368. radius: 5,
  369. fillOpacity: 1,
  370. fill: true,
  371. color: const.categories.crossing.color
  372. }) }}</td>
  373. <td>{{ tagTrans('highway', 'crossing') }}</td>
  374. </tr>
  375. <tr>
  376. <td>{{ markerLine({
  377. styles: 'default,foot',
  378. style: {
  379. width: 4,
  380. color: const.categories.cycleway.color,
  381. dashArray: '3,3'
  382. },
  383. 'style:foot': {
  384. width: 4,
  385. color: const.categories.footway.color,
  386. dashArray: '3,3',
  387. dashOffset: 3
  388. }
  389. }) }}</td>
  390. <td>{{ tagTrans('highway', 'cycleway segregated=no') }}</td>
  391. </tr>
  392. <tr>
  393. <td>{{ markerLine({
  394. styles: 'default,foot',
  395. style: {
  396. width: 2,
  397. color: const.categories.cycleway.color,
  398. offset: -1
  399. },
  400. 'style:foot': {
  401. width: 2,
  402. color: const.categories.footway.color,
  403. offset: 1
  404. }
  405. }) }}</td>
  406. <td>{{ tagTrans('highway', 'cycleway segregated=yes') }}</td>
  407. </tr>
  408. {% for k, d in const.sidewalks %}
  409. <tr>
  410. <td>{{ markerLine({
  411. styles: d.styles,
  412. 'style:leftr': {
  413. width: 9,
  414. offset: -1,
  415. opacity: 0.3,
  416. dashArray: '1,10',
  417. lineCap: butt,
  418. color: d.color
  419. },
  420. 'style:left': {
  421. width: 3,
  422. offset: -7,
  423. color: d.color
  424. }
  425. }) }}</td>
  426. <td>{{ tagTrans('sidewalk', k) }}</td>
  427. </tr>
  428. {% endfor %}
  429. </table>
  430. filter:
  431. access:
  432. name: '{{ keyTrans("access") }}'
  433. type: select
  434. placeholder: '<{{ trans("any value") }}>'
  435. valueName: '{{ tagTrans("access", value) }}'
  436. values:
  437. 'yes': {}
  438. private: {}
  439. permissive: {}
  440. customers: {}
  441. discouraged: {}
  442. '!':
  443. name: <{{ trans('empty value') }}>
  444. query: nwr[!access]
  445. weight: -3
  446. '?':
  447. name: <{{ trans("other") }}>
  448. query: nwr[access]["access"!~"^(public|private|permissive|customers|discouraged|unknown|yes)$"]
  449. weight: -2
  450. unknown:
  451. name: '<{{ trans("unknown") }}>'
  452. query: nwr["access"="unknown"]
  453. weight: -1
  454. surface:
  455. name: '{{ keyTrans("surface") }}'
  456. type: select
  457. placeholder: '<{{ trans("any value") }}>'
  458. valueName: '{{ tagTrans("surface", value) }}'
  459. query: '(nwr[surface="{{ value }}"];nwr[~"sidewalk:(left|right|both):surface"~"{{ value }}"];)'
  460. values:
  461. acrylic: {}
  462. artificial_turf: {}
  463. asphalt: {}
  464. carpet: {}
  465. chipseal: {}
  466. clay: {}
  467. cobblestone: {}
  468. compacted: {}
  469. concrete: {}
  470. concrete:lanes: {}
  471. concrete:plates: {}
  472. dirt: {}
  473. earth: {}
  474. fine_gravel: {}
  475. grass: {}
  476. grass_paver: {}
  477. gravel: {}
  478. ground: {}
  479. ice: {}
  480. metal: {}
  481. metal_grid: {}
  482. mud: {}
  483. paved: {}
  484. paving_stones: {}
  485. pebblestone: {}
  486. rock: {}
  487. rubber: {}
  488. salt: {}
  489. sand: {}
  490. sett: {}
  491. snow: {}
  492. stepping_stones: {}
  493. tartan: {}
  494. unhewn_cobblestone: {}
  495. unpaved: {}
  496. wood: {}
  497. woodchips: {}
  498. '!':
  499. name: <{{ trans('empty value') }}>
  500. query: |
  501. (
  502. nwr[!"surface"];
  503. nwr["sidewalk:left"="yes"][!"sidewalk:left:surface"];
  504. nwr["sidewalk:right"="yes"][!"sidewalk:right:surface"];
  505. nwr["sidewalk:both"="yes"][!"sidewalk:both:surface"][!"sidewalk:left:surface"];
  506. nwr["sidewalk:both"="yes"][!"sidewalk:both:surface"][!"sidewalk:right:surface"];
  507. nwr["sidewalk"="left"][!"sidewalk:left:surface"];
  508. nwr["sidewalk"="right"][!"sidewalk:right:surface"];
  509. nwr["sidewalk"="both"][!"sidewalk:both:surface"][!"sidewalk:left:surface"];
  510. nwr["sidewalk"="both"][!"sidewalk:both:surface"][!"sidewalk:right:surface"];
  511. )
  512. weight: -3
  513. '?':
  514. name: <{{ trans("other") }}>
  515. 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)$"]
  516. weight: -2
  517. unknown:
  518. name: '<{{ trans("unknown") }}>'
  519. weight: -1
  520. smoothness:
  521. name: '{{ keyTrans("smoothness") }}'
  522. type: select
  523. placeholder: '<{{ trans("any value") }}>'
  524. valueName: '{{ tagTrans("smoothness", value) }}'
  525. query: '(nwr[smoothness="{{ value }}"];nwr[~"sidewalk:(left|right|both):smoothness"~"{{ value }}"];)'
  526. values:
  527. bad: {}
  528. excellent: {}
  529. good: {}
  530. horrible: {}
  531. impassable: {}
  532. intermediate: {}
  533. very_bad: {}
  534. very_horrible: {}
  535. '!':
  536. name: <{{ trans('empty value') }}>
  537. query: |
  538. (
  539. nwr[!"smoothness"];
  540. nwr["sidewalk:left"="yes"][!"sidewalk:left:smoothness"];
  541. nwr["sidewalk:right"="yes"][!"sidewalk:right:smoothness"];
  542. nwr["sidewalk:both"="yes"][!"sidewalk:both:smoothness"][!"sidewalk:left:smoothness"];
  543. nwr["sidewalk:both"="yes"][!"sidewalk:both:smoothness"][!"sidewalk:right:smoothness"];
  544. nwr["sidewalk"="left"][!"sidewalk:left:smoothness"];
  545. nwr["sidewalk"="right"][!"sidewalk:right:smoothness"];
  546. nwr["sidewalk"="both"][!"sidewalk:both:smoothness"][!"sidewalk:left:smoothness"];
  547. nwr["sidewalk"="both"][!"sidewalk:both:smoothness"][!"sidewalk:right:smoothness"];
  548. )
  549. weight: -3
  550. '?':
  551. name: <{{ trans("other") }}>
  552. query: nwr[smoothness]["smoothness"!~"^(bad|excellent|good|horrible|impassable|intermediate|very_bad|very_horrible)$"]
  553. weight: -2
  554. unknown:
  555. name: '<{{ trans("unknown") }}>'
  556. weight: -1
  557. const:
  558. categories:
  559. sidewalk:
  560. color: '#ff007f'
  561. key: footway
  562. pedestrian:
  563. color: '#ff00c8'
  564. width: 5
  565. footway:
  566. color: '#ab00ff'
  567. path:
  568. color: '#ee922d'
  569. steps:
  570. color: '#ab00ff'
  571. dashArray: '3,3'
  572. crossing:
  573. color: '#964e00'
  574. cycleway:
  575. color: '#002aff'
  576. platform:
  577. key: railway
  578. color: '#00ff00'
  579. sidewalks:
  580. 'yes':
  581. color: '#ff007f'
  582. styles: 'leftr,left'
  583. 'separate':
  584. color: '#ff007f'
  585. styles: 'leftr'
  586. 'no':
  587. color: '#000000'
  588. styles: 'leftr'