The purpose of this check is to identify ways that have sudden highway tag jumps based on 3 different classes.
Sudden Highway Type Changes
- The way id:698449634 jumps from primary road to tertiary road. Flagged edge even needs to be a link.
This check evaluates Edges , it attempts to find large jumps in highway classifications.
We first validate that the incoming object is:
- An Edge
- A Main edge
- The Edge is Car Navigable
- The Edge is of a specified minimum highway type (tertiary)
- The Edge is not a roundabout or circular
Gather the ways' in and out edges. Iterate over these edges and determining if they fit within the 3 classifications of this check.
- Way with following classification: Motorway, Trunk, or Primary
- Above way terminates and connects to following classification: Tertiary, Unclassified, Residential, or Service
- Way with following classification: Motorway_Link, Trunk_Link, Primary_Link, Secondary_Link, or Secondary
- Above way terminates and connects to following classification: Unclassified, Residential, or Service
- Way with following classification: Tertiary or Tertiary_Link
- Above way terminates and connects to following classification: Living_Street, Service, or Track
To learn more about the code, please look at the comments in the source code for the check.
SuddenHighwayTypeChangeCheck.java