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: +