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.

633 lines
24 KiB

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