Detour Prevention Mechanisms: Difference between revisions Discussion View history

(→‎{{@|Criteria}}: roman numerals. no numbering for "full continuity check")
(→‎{{@|Criteria}}: Another rewording of the introduction and initial definitions)
Line 4: Line 4:


=== {{@|Criteria}} ===
=== {{@|Criteria}} ===
The big detour penalty will be applied to a detour (a series of segments leading off and then back onto the same highway) which has a direct route alternative (an alternate route to the possible detour that stays on the highway). The criteria listed below are the rules the Waze back end reportedly uses to check for detours and search for any alternative direct routes to "stay on the same highway".  
The big detour penalty is meant to prevent waze from telling you to take a detour off a highway and right back on, even if it saves you a little time. Waze should only offer this kind of detour if it saves enough time to be "worth it" - when traffic is really stopped up on the "direct" route.


A '''possible detour''' is a series of segments in the middle of a route that appear to be a detour off a highway and then back onto the same highway. The last segment before the possible detour and the first segment after the possible detour must belong to the same "road type group" as shown in the table below.
Waze does a few checks on an off-highway detour to see if it should be prevented.  It checks the length of the '''possible detour''' and checks to make sure the road type changes and that the name is not continuous with the highway you are detouring from. It also checks that there is an '''alternate route''' that is direct - the '''direct route''' must have a continuous road type and name continuity.  Waze does not check how many turn, keep, or exit instructions are issued on any of the paths it checks.


An '''alternate route''' is an alternative to a detour or possible detour. It begins immediately after the last segment before the '''possible detour''' and ends immediately before the first segment after the Possible Detour. If it meets the criteria below for '''direct route, '''the alternate route is also a direct route.
Here are the checks Waze makes. For the sake of this discussion, a '''possible detour''' is one we are checking. A '''confirmed detour''' passes those checks. An '''alternate route''' is one we are checking to see if it is a '''direct route'''. If we have a '''confirmed detour''' and there is a '''direct route''' available,  alternative, then waze will apply the big detour penalty.
<ol style="list-style-type: upper-roman;"><li>'''Segments before and after the possible detour:'''  The freeway/highway segments immediately before and immediately after the possible detour must share at least one street name among their primary and alternate names. Either segment may have the shared name as either a primary or an alternate name.</li>
<ol style="list-style-type: upper-roman;"><li>'''Segments before and after the possible detour:'''  The freeway/highway segments immediately before and immediately after the possible detour must share at least one street name among their primary and alternate names. Either segment may have the shared name as either a primary or an alternate name.</li>
<li>'''Confirmed detour:'''  A confirmed detour is a a possible detour that meets all of these criteria:
<li>'''Confirmed detour:'''  A confirmed detour is a a possible detour that meets all of these criteria:

Revision as of 18:44, 29 November 2017

Big detours link to this section

Waze routing includes a big detour prevention (BDP) mechanism to prevent routing off a highway/freeway only to be routed right back on the same highway/freeway. The assumption is that drivers will prefer to remain on the highway/freeway even if Waze calculates that taking a series of ramps or other collector/distributor roads is slightly faster or shorter. It is important to understand that Waze uses a penalty-based routing system. It computes the total penalties for a route and selects the one with the smallest total penalty (including time to drive the route). Therefore it is possible for big detour routes to occur when the direct route is extremely slow.

Criteria link to this section

The big detour penalty is meant to prevent waze from telling you to take a detour off a highway and right back on, even if it saves you a little time. Waze should only offer this kind of detour if it saves enough time to be "worth it" - when traffic is really stopped up on the "direct" route.

Waze does a few checks on an off-highway detour to see if it should be prevented. It checks the length of the possible detour and checks to make sure the road type changes and that the name is not continuous with the highway you are detouring from. It also checks that there is an alternate route that is direct - the direct route must have a continuous road type and name continuity. Waze does not check how many turn, keep, or exit instructions are issued on any of the paths it checks.

Here are the checks Waze makes. For the sake of this discussion, a possible detour is one we are checking. A confirmed detour passes those checks. An alternate route is one we are checking to see if it is a direct route. If we have a confirmed detour and there is a direct route available, alternative, then waze will apply the big detour penalty.

  1. Segments before and after the possible detour: The freeway/highway segments immediately before and immediately after the possible detour must share at least one street name among their primary and alternate names. Either segment may have the shared name as either a primary or an alternate name.
  2. Confirmed detour: A confirmed detour is a a possible detour that meets all of these criteria:
    1. Name discontinuity - The possible detour must have at least one break in name continuity from the last segment before the detour to the first segment after the detour. Specifically, the last segment of the possible detour must not have name continuity with the first segment after the possible detour.
    2. Road type discontinuity - The freeway/highway segments immediately before and immediately after the possible detour must be from the same road type group as shown in the table below. The possible detour must include at least one segment not in that same road type group.
    3. Minimum length - The possible detour must be more than one segment long.
    4. Maximum length - The possible detour must be shorter than the threshold length as shown in the table below.
  3. Direct route: A direct route is an alternate route that meets the criteria below:
    1. Existence: There must be an alternate route connecting the freeway/highway segments immediately before and immediately after the detour which does not use any of the segments used in the possible detour.
    2. Continuity The entire alternate route should have name and road type continuity. In the past, less resource-intensive methods have been used for checking the direct route. Currently, a full continuity check is in use. All segments of the Alternate route must have both name and type continuity with the segment immediately before and the segment immediately after the possible detour - the most resource-intensive continuity check.
Road Type Group Threshold
 Freeway 
 Major Highway 
5km
 Minor Highway  500m

Notes link to this section

  • If the first segment after the possible detour is the beginning of a freeway or highway then the first segment and, thus, can only be accessed from ramps or segments of a different road type group, then there can be no direct route according to the criteria above.
  • For divided roadways that have the same name on both carriageways, the big detour prevention mechanism will prevent U-turns that traverse more than one segment. Thus in the intersection below, the configuration on the left will be used to route a U-turn because it uses a single segment between the two parallel roadways with the same name. In contrast, the configuration on the right will not use the U-turn road because it branches from another segment causing multiple segments between the two parallel roads with the same name, and the U-turn is not in the same road type group.


  • Be careful of "false positives!" For example, where route number concurrencies begin and end, the big detour mechanism may be unexpectedly triggered as follows (see diagram):
    • In a concurrency, two highways share the same road, and both names will appear on the concurrent segments, using alternate names. Where the concurrency ends, the two highways split into separate roadways again.
    • Often, there are ramp segments connecting the last concurrent segment to one or both of the non-concurrent continuations. If the concurrency was of I-1234 and I-4567, for example, there might be a ramp named "to I-1234 / Sometown" - a name which contains "I-1234" but is not identical to the highway name.
    • If the ramp does not also carry a simple alternate name of "I-1234", then there is a discontinuity of the highway name between the concurrency and the continuation highway. If there are two ramp segments like this, it will trigger Big Detour Prevention unexpectedly, and Waze will create an unneeded penalty for continuing on I-1234.
    • To prevent this, just assign I-1234 as an alternate name to all ramps between the two sections (concurrency and continuation). Note that if there is only a single ramp segment connecting the highways, there will not be a "false positive." Nevertheless, it is a good practice to do this even for a single ramp segment, in case the ramp is cut into two segments later, either by accident or because later construction or map improvements connect another feeder ramp in the middle.
  • Another example of a false positive could occur where a highway has multiple wayfinders connected one to another (for example, if there are several multi-lane exits in a row).

Small Detours link to this section

Waze has a small detour prevention mechanism to deal with instances where Waze calculates that that a left turn can be "optimized" by using U-turns and right turns (either continue straight, U-turn, right turn; or alternatively, immediate right turn, U-turn, continue straight). While this may save a few seconds over waiting for a long average left turn, it is undesirable. Waze will prevent such detours if there is not a measurable difference in the route times. The exact difference in time required to trigger this prevention is proprietary, and subject to change as needed.