Routing penalties/U-turn minimum: Difference between revisions View history

m (Another possible fix for the parse error)
(Temporary fix for expr error. Revert changes after fixed. Consider allowing "greater")
Line 1: Line 1:
<!--
<noinclude><small>''(To allow the U-turn prevention mechanism to kick in, the median crossover segment in a box U-turn must be less than:)''</small>
#####-----#####-----#####-----#####-----#####-----#####-----#####-----#####-----
####    This page has been curated  ####
####    to be included in the new    ####
####    Wazeopedia - GLOBAL Wiki.  ####
####    Please do not make any      ####
####    edits on this page without  ####
####    PRIOR CONSENSUS in the Wiki  ####
####    Updates and Discussions      ####
####    forum thread for this page.  ####
####    If a specific forum thread  ####
####    for this page doesn't exist  ####
####    please start one.            ####
####        www.waze.com/forum/      ####
####        viewforum.php?f=276      ####
#####-----#####-----#####-----#####-----#####-----#####-----#####-----#####--><!--
--><noinclude><small>''(To allow the U-turn prevention mechanism to kick in, the median crossover segment in a box U-turn must be less than:)''</small>


</noinclude><!-- This template has three possible outputs, the threshold length, or 1 meter greater, or 1 meter less. the default is the threshold length, the other 2 can be obtained using a variable. The greater or less than outputs are calculated automatically, ONLY UPDATE THE MAIN THRESHOLD LENGTH BELOW  
</noinclude><!-- This template has three possible outputs, the threshold length, or 1 meter greater, or 1 meter less. the default is the threshold length, the other 2 can be obtained using a variable. The greater or less than outputs are calculated automatically, ONLY UPDATE THE MAIN THRESHOLD LENGTH BELOW -- Temporarily hard coded to get around expr error after Wazopedia change. Revert changes after expr extension fixed
-->{{#ifeq:{{{1|}}}|great|<!-- if the parameter is set to greater provide an output which is 1 meter greater than the default -->{{#expr: {{padleft:|2|{{:Routing_penalties/U-turn_minimum}}}} + 1}}&nbsp;meters ({{#expr: {{#expr: {{padleft:|2|{{:Routing_penalties/U-turn_minimum}}}} + 1}} * 3.2808 round 2}}&nbsp;feet)
-->{{#ifeq:{{{1|}}}|great|<!-- if the parameter is set to great provide an output which is 1 meter greater than the default -->16&nbsp;meters (52.49&nbsp;feet)
|{{#ifeq:{{{1|}}}|less|<!-- if the parameter is set to less provide an output which is 1 meter less than the default -->{{#expr: {{padleft:|2|{{:Routing_penalties/U-turn_minimum}}}} - 1}}&nbsp;meters ({{#expr: {{#expr: {{padleft:|2|{{:Routing_penalties/U-turn_minimum}}}} - 1}} * 3.2808 round 2}}&nbsp;feet)
|{{#ifeq:{{{1|}}}|greater|<!-- if the parameter is set to great provide an output which is 1 meter greater than the default -->16&nbsp;meters (52.49&nbsp;feet)
|{{#ifeq:{{{1|}}}|less|<!-- if the parameter is set to less provide an output which is 1 meter less than the default -->14&nbsp;meters (45.93&nbsp;feet)
|<!-- if no parameter is set provide the default output
|<!-- if no parameter is set provide the default output



Revision as of 23:07, 14 April 2017

(To allow the U-turn prevention mechanism to kick in, the median crossover segment in a box U-turn must be less than:)

{{#ifeq:|great|16 meters (52.49 feet)

|15 meters (49.21 feet)

Documentation[view] [edit] [history] [purge]

This template is used to display the minimum distance required to allow two left turns, or two right turns to generate a U-turn in a route. This template enables this number to be changed if necessary over time without having to change the individual pages.

Other conditions will also contribute to u-turn allowance or prevention. For more information see preventing medial u-turns.

The template has two possible outputs to display the minimum distance required to enable a u-turn and the maximum distance to disable a u-turn. The default output is the minimum distance to enable a u-turn.


Parameters

When the template is used with |less, |below, or |disable, the output will be the distance below the threshold and therefore the maximum distance that will disable a u-turn.

When the template is used without any parameter (or any other undefined parameter), the output will be the minimum distance above the threshold that will allow a u-turn.

Usage

Place {{[[::Routing_penalties/U-turn_minimum|:Routing_penalties/U-turn_minimum]]}} on any page where you want to display the minimum segment length to allow a u-turn:

{{#ifeq:|great|16 meters (52.49 feet)

|15 meters (49.21 feet)


Place {{[[::Routing_penalties/U-turn_minimum|:Routing_penalties/U-turn_minimum]]|less}} (or one of the other parameters listed above) anywhere you want to display the maximum length of a segment that will disable a u-turn.

{{#ifeq:less|great|16 meters (52.49 feet)

|14 meters (45.93 feet)


The gap in the two thresholds is due to metric and imperial rounding issues, so a buffer was built into this setting to prevent unexpected results. For more information on this issue, see WME segment length display.

The above documentation is transcluded from Routing penalties/U-turn minimum/doc.
Please add categories to the /doc subpage.
Subpages of this page.