Browse Source

footways: for sidewalk=*, do not use 'surface' tag

parking-lanes
parent
commit
6aa1d1a112
  1. 7
      footways.yaml

7
footways.yaml

@ -481,7 +481,10 @@ filter:
{% set value = "(unpaved|compacted|fine_gravel|gravel|rock|pebblestone|ground|dirt|earth|grass|grass_paver|mud|sand|woodchips|snow|ice|salt)" %} {% set value = "(unpaved|compacted|fine_gravel|gravel|rock|pebblestone|ground|dirt|earth|grass|grass_paver|mud|sand|woodchips|snow|ice|salt)" %}
{% endif %} {% endif %}
(nwr[surface~"^{{ value }}$"];nwr[~"sidewalk(:left|:right|:both|):surface"~"^{{ value }}$"];)
(
nwr[!sidewalk][!"sidewalk:both"][!"sidewalk:right"][!"sidewalk:left"][surface~"^{{ value }}$"];
nwr[~"sidewalk(:left|:right|:both|):surface"~"^{{ value }}$"];
)
values: values:
all_paved: all_paved:
name: "<{{ tagTrans('surface', 'paved') }}>" name: "<{{ tagTrans('surface', 'paved') }}>"
@ -530,7 +533,7 @@ filter:
name: <{{ trans('empty value') }}> name: <{{ trans('empty value') }}>
query: | query: |
( (
nwr[!"surface"];
nwr[!sidewalk][!"sidewalk:both"][!"sidewalk:right"][!"sidewalk:left"][!"surface"];
nwr["sidewalk:left"="yes"][!"sidewalk:left:surface"]; nwr["sidewalk:left"="yes"][!"sidewalk:left:surface"];
nwr["sidewalk:right"="yes"][!"sidewalk:right:surface"]; nwr["sidewalk:right"="yes"][!"sidewalk:right:surface"];
nwr["sidewalk:both"="yes"][!"sidewalk:both:surface"][!"sidewalk:surface"][!"sidewalk:left:surface"]; nwr["sidewalk:both"="yes"][!"sidewalk:both:surface"][!"sidewalk:surface"][!"sidewalk:left:surface"];

Loading…
Cancel
Save