This check identifies closed navigable ways https://wiki.openstreetmap.org/wiki/Item:Q4669 that have a round shape and intersecting with at least two navigable ways.
All cases covered with AutoFix suggestion.
Roundabout without junction=roundabout
tag.
In Atlas, OSM elements are represented as Edges, Points, Lines,
Nodes & Relations; in our case, we’re working with Edges.
In OpenStreetMap, roundabouts are Ways classified with
the junction=roundabout
tag. We’ll identify ways that are roundabouts without junction=roundabout
tag.
Our first goal is to validate the incoming Atlas Object.
- Must be a first section of valid main Edge
- Must have not already been flagged
- Must be car navigable
- Must have not
junction
andarea
tag - Must be a closed way OSM-wiki:Closed Way
- Must intersect at minimum with two navigable ways
- Must not be Turning Circle OSM-wiki:turning_circle nor Turning Loop OSM-wiki:turning_loop
Our second goal is to exclude pedestrian, private and under construction edges with "tags.filter"
After the preliminary filtering of features we need to rebuild original OSM way geometry. Ones we have rebuilt the geometry, we will measure angles between each Nodes ensuring that roundabout candidate is round shaped within a threshold.
We use a OsmWayWalker to gather all sectioned Edges that are connected to the original Edge.
To learn more about the code, please look at the comments in the source code for the check. RoundaboutMissingTag.java