[Script] WME Junction Angle Info

Considering that a self connected U-turn (only one segment) is able to generate a prompt, it seems to reason they adjusted the algorithm even for two segments in the case of a U-turn prompt.

We will have to update the algorithm in the wiki to account for these changes to.
Can you please list the criteria as you know it for the algorithm to generate this 2 segment uturn prompt, I will try to incorporate it into the algorithm and flowchart in the wiki.
Thanks
Sent using Tapatalk for Android 4.4.2

Hi, is there a way for this script to not automatically be active when WME loads?

Thanks

Just disable it in Tampermonkey or Chrome.

Or hide the corresponding map layer?

maybe i didnt word my question very well…

when WME starts, this script is always visible as a map layer.
I would like to start WME and it to not automatically be a visible map layer.

Thanks

When wme starts it remembers your layer settings from your last session, unless you had you are using a link to open wme which includes the &layers=### parameter.

If the layer is off when you last closed wme on that browser, and you open it with a blank URL http://www.waze.com/editor/ with nothing after that it should stay off.

Is this not the case?

Sent using Tapatalk for Android 4.4.2

No, I uncheck it in the drop down layers menu, then it is checked again every time WME is reloaded. I just click on the ‘Edit The Map’ link from Live Map, so the only parameters are Lon, Lat, and Zoom

Probably something to do with the fact that the layer is added only after WME is loaded already… Maybe would be possible to store a value once the layer is shown/hidden, and then use the stored value to programmatically hide the layer if desired…

I do recall the layer visibility was working correctly at some point though, as I was wondering why the script would not load (turned out is was simply not checked) [emoji12]

Can you please publish your latest version script?

sure :slight_smile: Unfortunately it will have to wait until tomorrow…

For those who would like to try a new JAI feature called “disallowed U-turns indicator” there is the latest development version available supporting this:
https://github.com/FZ69617/WME-ja/raw/master/wme_junctionangle.user.js

The indicator is displayed only for 15m or less long segments with disallowed U-turn as documented in U-turn avoidance conditions in Wiki.

Example:

Here the yellow bubbles displayed next to the green ones indicates disallowed U-turns.

Hope incoming official JAI version will also include this new feature.

Very cool!

Do we know yet whether this prompt takes into account the segment name, the directionality, and whether it’s a right-hand or left-hand drive country? I can think of some scenarios where it would be undesirable to have a U-turn instruction, and we should take this up with Waze if this is the case.

The first one, still gives a turn left, on the livemap, @168.91 degr.

Don’t know exactly. In the situations I’ve tested both segments had the same properties. The Uturn prompt was given in both directions, so a left and right uturn.
Do you have a specific construction in mind, where this would cause problems? It’s quite an extreme angle, so hard to create that NOT on purpose…

If the two segments have different names out may have an effect we should test that

Sent using Tapatalk for Android

I’ve changed my test set up, with diff names, and diff names+ street-to-primary

EDIT: i did test that on a 3-segment uturn, and that didn’t have any effect. :wink:

All giving a uturn instruction. From all directions. :smiley:

Did any of the devs pick this one up? Think it might need to be lifted over 169.00?

I don’t know, I think 170 is already a little steep. If they decided to change the angle to 160-165 I would be fine with that, we just need to test.