# Changes

## User:Kjg53/Interactive junction instruction algorithm

, 4 years ago
no edit summary
{{Construction | contact=http://www.waze.com/forum/ucp.php?i=pm&mode=compose&u=PesachZ Kjg53 | contacttype=user | open=no | draft=no}}
This is a clickable interactive guide to determine what instruction, if any, will be given at the junction between any 2 segments.
|}
<div class="step_by_stepfirst" id=">{{anchor|01">}}Other than ''the origin'' and ''the destination'', are there any other segments connected to this junction?
</div>
<div class="step_by_step" id=">{{anchor|19">}}Do ''the origin'' and ''the destination'' meet at a [[Roundabouts/USA|Roundabout]]?
</div>
<div class="step_by_step" id=">{{anchor|02">}}Is the turn angle from ''the origin'' to ''the destination'' between {{:How_Waze_determines_turn_/_keep_/_exit_maneuvers/Turn threshold}} and 150°?
</div>
<div class="step_by_step" id=">{{anchor|03">}}Which direction is the turn?
</div>
<div class="step_by_step" id=">{{anchor|04">}}Are there any other ''branches'' with unrestricted turns from ''the origin''?
</div>
<div class="step_by_step" id=">{{anchor|13">}}Is there more than one (1) {{H:title|Any segments other than the destination which leave the junction at an angle less than {{:How_Waze_determines_turn_/_keep_/_exit_maneuvers/Stay threshold}} will be referred to as other branches|
other branch}}?
</div>
<div class="step_by_step" id=">{{anchor|14">}}Are the two branches (''the destination'' and the ''other branch'') ''overlapping''?
</div>
<div class="step_by_step" id=">{{anchor|05">}}Is the name of ''the origin'' and ''the destination'' identical?
</div>
<div class="step_by_step" id=">{{anchor|06">}}Are ''the origin'' and ''the destination'' the same road type?
</div>
<div class="step_by_step" id=">{{anchor|07">}}Are both the name AND the road type of any of the ''other branches'' identical to ''the origin''?
</div>
<div class="step_by_step" id=">{{anchor|08">}}Is there any ''other branch'' to the left of the destination branch?
</div>
<div class="step_by_step" id=">{{anchor|20">}}Is this an ''overlapping segment'', is it overlapped by any ''other branch''?
</div>
<div class="step_by_step" id=">{{anchor|25">}}Are the segments in a [[RHT|right hand traffic]] country (such as the USA)?
</div>
<div class="step_by_step" id=">{{anchor|21">}}Is ''the origin'' a [[Road_types/USA#Highways|highway]]? ({{Freeway}}, {{Major Highway}}, or {{Minor Highway}})
</div>
<div class="step_by_step" id=">{{anchor|22">}}Is ''the destination'' a [[Road_types/USA#Highways|highway]]? ({{Freeway}}, {{Major Highway}}, or {{Minor Highway}})
</div>
<div class="step_by_step" id=">{{anchor|23">}}Is ''the origin'' a {{ramp}}?
</div>
<div class="step_by_step" id=">{{anchor|24">}}Is ''the destination'' a [[Road_types/USA#Highways|highway]] ({{Freeway}}, {{Major Highway}}, or {{Minor Highway}}), or a {{ramp}}?
</div>
<div class="step_by_step" id=">{{anchor|09">}}Is the name of any of the ''other branches'' identical to ''the origin''?
</div>
<div class="step_by_step" id=">{{anchor|10">}}Are ''the origin'' and ''the destination'' the same road type?
</div>
<div class="step_by_step" id=">{{anchor|11">}}Is the name of any of the ''other branches'' identical to ''the origin''?
</div>
<div class="step_by_step" id=">{{anchor|12">}}Is the road type of any of the ''other branches'' identical to ''the origin''?
</div>
<div class="step_by_step" id=">{{anchor|26">}}Are the segments in a [[LHT|left hand traffic]] country (like the UK)?
</div>
<div class="step_by_step" id=">{{anchor|15">}}Is ''the origin'' a [[Road_types/USA#Highways|highway]]? ({{Freeway}}, {{Major Highway}}, or {{Minor Highway}})
</div>
<div class="step_by_step" id=">{{anchor|16">}}Is ''the destination'' a [[Road_types/USA#Highways|highway]]? ({{Freeway}}, {{Major Highway}}, or {{Minor Highway}})
</div>
<div class="step_by_step" id=">{{anchor|17">}}Is ''the origin'' a {{ramp}}?
</div>
<div class="step_by_step" id=">{{anchor|18">}}Is ''the destination'' a [[Road_types/USA#Highways|highway]] ({{Freeway}}, {{Major Highway}}, or {{Minor Highway}}), or a {{ramp}}?
</div>
<div class="step_by_step" id=">{{anchor|27">}}Are there five (5) or more segments ([[Glossary#Junction|junctions]]) connected to the roundabout?
[[File:Abnormal roundabout 1.JPG|100px|border|more than 4 nodes]]
</div>
<div class="step_by_step" id=">{{anchor|28">}}From the perspective of ''the origin'', are the ''roundabout angles'' to all the other segments between 0°-15°, or 75°-105°?
</div>
<div class="step_by_step" id=">{{anchor|29">}}What direction is ''the destination'' relative to ''the origin''?
== The navigation instructions ==
<div class="step_by_step" id="_No_Instruction">
=== No Instruction ===
</div>
<div class="step_by_step" id="_Turn_Right">
=== Turn Right ===
</div>
<div class="step_by_step" id="_Keep/Stay_Right">
=== Keep/Stay Right ===
</div>
<div class="step_by_step" id="_Exit_Right">
=== Exit Right ===
</div>
<div class="step_by_step" id="_Turn_Left">
=== Turn Left ===
</div>
<div class="step_by_step" id="_Keep/Stay_Left">
=== Keep/Stay Left ===
</div>
<div class="step_by_step" id=">{{anchor|Exit_Left">}}
=== Exit Left ===
</div>
=== At the Roundabout Take the #xx Exit ===
</div>