Restructured some of the sentences.
;Detour :Any route used in place of the direct route.
;Alternate Route :What Waze compares a route to - when evaluating a detour route, the direct route is the evaluated alternative.
;Road Type Group Continuity :'''Road type group continuity''' is when a set of continuous segments all belong to the same road type group (see table below). '''Road type group
'''discontinuity ''' '''is when one of the segments in the set of continuous segments belongs to a different road type group (which changes the road type). ;Name Continuity : A set of continuous segments which all share a name have name continuity. It doesn't matter whether the name is found as a primary or alternate name on any of the segments, as long as it is present in each. If one of the segments in this continuous set does not share the name shared by all the other segments , then there is a '''name discontinuity'''.
Waze makes a few checks on an off-highway '''detour''' to see if it should be prevented. It checks the length of the '''detour, '''makes sure the ''road type group'' changes, and that the name is ''not'' continuous with the highway the route detours from. It also checks that there exists an '''alternate route''' that is direct - the '''direct route''' must have name continuity and road type group continuity (see details below). Waze does not consider how many 'turn...', 'keep...', or 'exit...' instructions are issued on any of the paths it checks for detour prevention.