From 974d0afe1fc4308ef3279d0c6f4a2543d8c4d7da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 25 Feb 2024 10:39:57 +0100 Subject: [PATCH] walk_amenities_qa: new category for walk amenities quality control --- index.json | 3 + lang/en.json | 1 + walk_amenities_qa.yaml | 231 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 235 insertions(+) create mode 100644 walk_amenities_qa.yaml diff --git a/index.json b/index.json index 9b5999b..3d6fdfd 100644 --- a/index.json +++ b/index.json @@ -410,6 +410,9 @@ }, { "id": "wikipedia" + }, + { + "id": "walk_amenities_qa" } ] } diff --git a/lang/en.json b/lang/en.json index f0ea8a2..7db67ab 100644 --- a/lang/en.json +++ b/lang/en.json @@ -99,6 +99,7 @@ "category:transport_pt": "Public Transportation", "category:transport_walk": "Walking", "category:walk_amenities": "Amenities", + "category:walk_amenities_qa": "Walking Amenities", "category:waste": "Disposal", "category:water": "Waterbodies", "category:wikipedia": "Wikipedia", diff --git a/walk_amenities_qa.yaml b/walk_amenities_qa.yaml new file mode 100644 index 0000000..b94d6c9 --- /dev/null +++ b/walk_amenities_qa.yaml @@ -0,0 +1,231 @@ +query: + '13': |- + ( + node[highway~"^(elevator)$"]; + node[information]; + node[tourism~"^(viewpoint)$"]; + node[man_made~"^(cairn)$"]; + nwr[amenity~"^(shelter)$"]; + way[highway~'^(footway|steps)$'][conveying]; + ) + '16': |- + ( + node[highway~"^(crossing|elevator)$"]; + node[information]; + node[tourism~"^(viewpoint)$"]; + node[man_made~"^(cairn)$"]; + nwr[amenity~"^(bench|shelter)$"]; + node[leisure~"^(picnic_table)$"]; + way[highway~'^(footway|steps)$'][conveying]; + ) +feature: + pre: |- + {% if tags.information %} + {% set key = 'information' %} + {% set value = tags.information %} + {% elseif tags.amenity in [ 'bench', 'shelter' ] %} + {% set key = 'amenity' %} + {% set value = tags.amenity %} + {% elseif tags.leisure in [ 'picnic_table' ] %} + {% set key = 'leisure' %} + {% set value = tags.leisure %} + {% elseif tags.man_made in [ 'cairn' ] %} + {% set key = 'man_made' %} + {% set value = tags.man_made %} + {% elseif tags.tourism in [ 'viewpoint'] %} + {% set key = 'tourism' %} + {% set value = tags.tourism %} + {% elseif tags.conveying and tags.highway %} + {% set key = 'highway' %} + {% set value = tags.highway ~ ' conveying' %} + {% else %} + {% set key = 'highway' %} + {% set value = tags.highway %} + {% endif %} + + {% set type_data = const[key ~ '=' ~ value] %} + + {% set classify = '#0000ff' %} + {% for k in type_data.optional %} + {% if not attribute(tags, k) %} + {% set classify = '#00ffff' %} + {% endif %} + {% endfor %} + {% for k in type_data.require %} + {% if not attribute(tags, k) %} + {% set classify = '#ff0000' %} + {% endif %} + {% endfor %} + description: |- + {{ tagTrans(key, value) }} + markerSymbol: | + {{ markerPointer({ fillColor: classify }) }} + listMarkerSymbol: | + {{ markerCircle({ fillColor: classify }) }} + markerSign: |- + {{ type_data.sign|raw }} + priority: |- + {{ type_data.priority }} + body: |- + Strongly recommended tags: + + Further recommended tags: + +filter: + type: + name: | + {{ trans('filter:type') }} + type: select + show_default: true + values: |- + {% for kv, d in const %} + + {% endfor %} +const: + highway=crossing: + priority: 10 + sign: + require: + - crossing + optional: + - crossing:island + - crossing:markings + - lit + highway=elevator: + priority: 2 + sign: + require: + - level + - wheelchair + - operator + - maxweight + - capacity:person + optional: + - level:ref + - fee + - bicycle + - goods + - display + - door + - door:width + - door:height + - handrail + - lit + - height + - length + - width + - speech_output + - tactile_writing:braille:de + - tactile_writing:embossed_printed_letters:de + information=guidepost: + priority: 2 + sign: + require: + - tourism + optional: + - guidepost + - guide_type + - name + - ele + - ref + information=map: + priority: 2 + sign: + require: + - map_type + optional: + - map_size + - map_source + information=board: + priority: 2 + sign: + optional: + - board_type + - board:title + information=office: + priority: 1 + sign: + require: + - name + optional: + - operator + - opening_hours + - wheelchair + amenity=bench: + priority: 3 + sign: + require: + - backrest + - capacity + - material + optional: + - bench:type + - covered + - length + - seats + - two_sided + leisure=picnic_table: + priority: 3 + sign: + require: + - backrest + - capacity + - material + optional: + - bench:type + - covered + - length + - two_sided + man_made=cairn: + priority: 2 + sign: + amenity=shelter: + priority: 1 + sign: + require: + - shelter_type + - bench + - bin + optional: + - table + - picnic_table + - access + - lockable + highway=steps conveying: + sign: / + query: nwr[highway=steps][conveying] + priority: 2 + require: + - level + - incline + optional: + - level:ref + - width + - tactile_paving + - duration + highway=footway conveying: + sign: / + query: nwr[highway=footway][conveying] + priority: 2 + require: + - level + - incline + optional: + - level:ref + - width + - tactile_paving + - duration