Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 2.41 KB

separateSidewalkTagCheck.md

File metadata and controls

43 lines (32 loc) · 2.41 KB

Separate Sidewalk Tag Check

Description

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.

Live Example

Please note that examples below might be fixed olready.

  1. id:42023472
  2. id:415202408
  3. id:370064399
  4. id:684661218

Code Review

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