A check to validate that when sidewalk=* tags are used on a highway that any separately mapped sidewalk(s) are consistent with the highway’s sidewalk tags.
Please note that examples below might be fixed olready.
In Atlas, OSM elements are represented as Edges, Points, Lines, Nodes & Relations; in our case, we’re working with Edges that have Sidewalk tags. In OpenStreetMap, Sidewalks ma
Our first goal is to validate the incoming Atlas Object.
- Must be a valid main Edge
- Must have not already been flagged
- Must be car navigable
- Must have Sidewalks tags
- Must not be a closed way OSM-wiki:Closed Way
- Must not be a dual carriageway.
- Must have a certain length (default 20 meters)
Our second goal is to search for separately mapped Sidewalks around the Edge midpoint within certain search distance (default 15 meters). We use a boxAround to gather all sidewalks.
After we found separately mapped sidewalks, we ensure that
- Sidewalk is on the same layer with the highway
- Sidewalk is not crossing the highway
- Sidewalk is not sharing a location with the highway
- Sidewalk is more or less parallel with the highway
Our third goal is to identify the side (left|right) for every separately mapped sidewalk.
After we identified the side, we ensure that tagging of highway sidewalk is consistent with separately mapped sidewalk.
To learn more about the code, please look at the comments in the source code for the check. SeparateSidewalkTagCheck.java