Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.85 KB

suddenHighwayTypeChangeCheck.md

File metadata and controls

40 lines (30 loc) · 1.85 KB

SuddenHighwayTypeChangeCheck

Description

The purpose of this check is to identify ways that have sudden highway tag jumps based on 3 different classes.

Live Examples

Sudden Highway Type Changes

  1. The way id:698449634 jumps from primary road to tertiary road. Flagged edge even needs to be a link.

Code Review

This check evaluates Edges , it attempts to find large jumps in highway classifications.

Validating the Object

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
Flagging the Edge

Gather the ways' in and out edges. Iterate over these edges and determining if they fit within the 3 classifications of this check.

Three classifications of Sudden Highway Tag Changes
Class 1
  • Way with following classification: Motorway, Trunk, or Primary
  • Above way terminates and connects to following classification: Tertiary, Unclassified, Residential, or Service
Class 2
  • 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
Class 3
  • 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