Opened 4 years ago
Last modified 3 years ago
#21235 closed enhancement
[PATCH] Stop whitelisting footway=*, and add footway=separate to blacklist candidates for sidewalk=* — at Version 10
| Reported by: | JeroenHoek | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | 22.07 |
| Component: | Core validator | Version: | |
| Keywords: | footway sidewalk | Cc: |
Description (last modified by )
To resolve #10851, #10976, #15439, and #19389 the validator checks if ways have footway=* set with one of the values typically used for sidewalk=*. This seems to be a fairly common mistake, so it's good to have a warning here.
Issues
There are two minor issues with the current validation approach I would like to resolve.
footway=separate is missing
The validator checks for left, right, both, none, and no. separate is missing from this list.
Whitelist blocks all other possible footway values except for three
While the above values are clear examples of misstagging, footway is not an invalid key, and is used to provide a refining of highway=footway. The validator acknowledges this for access_aisle, crossing, and sidewalk, but excludes everything else. This seems too strict compared to the other rules — we don't whitelist values for highway=* for example. Mappers can (and do) create new values, and some are gaining broader acceptance. This check seems superfluous with the checks for values that probably mean sidewalk=* in place.
Patch
In the attached patch:
- A check for
footway=separateis added. - The whitelist for
footway=*is removed.
Are there any issues I am overlooking or reintroducing with this patch?
Change History (10)
comment:1 by , 4 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 4 years ago
| Component: | Core → Core validator |
|---|---|
| Type: | defect → enhancement |
comment:3 by , 4 years ago
| Description: | modified (diff) |
|---|
comment:4 by , 4 years ago
comment:5 by , 4 years ago
| Keywords: | footway sidewalk added |
|---|
comment:6 by , 4 years ago
Really? This isn't reflected in the current documentation of sidewalk=*. I'm not seeing any recent mention on the Taggin-ML either.
I'm not opposed to deprecating sidewalk=none, but was this discussed somewhere else than on the Taggin-ML and the wiki-page for sidewalk=*?
comment:8 by , 4 years ago
Now OSM Wiki discussion appeared: https://wiki.openstreetmap.org/wiki/Talk:Key:sidewalk#Is_sidewalk.3Dnone_valid.3F
comment:10 by , 4 years ago
| Description: | modified (diff) |
|---|



According to #21242,
sidewalk=noneshould be replaced bysidewalk=no, so JOSM is correct with the special treatment.