[Script] WME Junction Angle Info

Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Moderators: Unholy, bextein, Glodenox, JustinS83

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Re: [Script] WME Junction Angle Info

Postby Leorenaud » Fri Nov 29, 2019 12:45 pm

Can you please show the median uturn prevention again for St-PS?
As I stated above the median uturn prevention is still active from St -> PS.
Although it is nog active anymore from PS->St I still would like to see the yellow balloons with angles to avoid.
JAI_St-PS.JPG
(213.92 KiB) Downloaded 202 times

JAI_PS-St.JPG
(194.83 KiB) Downloaded 203 times
[ img ][ img ][ img ][ img ][ img ]
Global Champ
Country Manager Benelux
Regio Manager: Gelderland
Benelux wiki - Waze Nederland Slack invite
Leorenaud
Waze Global Champs
Waze Global Champs
 
Posts: 2062
Joined: Sun Nov 04, 2012 3:32 pm
Location: Benelux, The Netherlands, Nijmegen - Wageningen
Has thanked: 194 times
Been thanked: 555 times

Re: [Script] WME Junction Angle Info

Postby AlMakarov » Tue Dec 03, 2019 8:57 am

Hello,
Please return functionality to checking U-turn preventions.

Thank You!
[ img ]
Russia - Area Manager / Bahrain - Country Manager
[ img ] [ img ] [ img ] [ img ] [ img ] [ img ]
AlMakarov
 
Posts: 3
Joined: Mon Feb 05, 2018 8:04 pm
Location: Al Seef District, Bahrain / Moscow, Russia
Has thanked: 1 time
Been thanked: 13 times

Re: [Script] WME Junction Angle Info

Postby B4ckTrace » Thu Jan 09, 2020 8:43 am

I agree with other guys and ja_is_up_to_primary_road should be refined. Because the penalty is still considered by waze.
In addition I think W.map should be fixed to W.map.olMap in the ja_segment_length function, to work correctly.
B4ckTrace
 
Posts: 2
Joined: Sun Feb 24, 2019 11:04 am
Has thanked: 1 time
Been thanked: 0 time

Re: [Script] WME Junction Angle Info

Postby seb-d59 » Sun Jan 19, 2020 6:35 am

Hello,
B4ckTrace wrote:In addition I think W.map should be fixed to W.map.olMap in the ja_segment_length function, to work correctly.

This is fixed.
seb-d59
Waze Local Champs
Waze Local Champs
 
Posts: 1851
Joined: Fri Jan 03, 2014 8:01 am
Location: Croix (59)
Has thanked: 507 times
Been thanked: 605 times

Re: [Script] WME Junction Angle Info

Postby seb-d59 » Sun Jan 19, 2020 7:42 am

B4ckTrace wrote:I agree with other guys and ja_is_up_to_primary_road should be refined. Because the penalty is still considered by waze.

I see to check only the outgoing segment, like this :
Leorenaud wrote:I noticed there is a difference in what is the incoming segment (A) and the outgoing segment (C).
A (PS) -> B(St) -> C(St) is not penalized
but
A (St) -> B(St) -> C(PS) is penalized
Which imo does not make sense.


Let me have a look to exclude the false positive for the curved segment with no parallel in/out seg, but it is not my priority.
For the moment, if the middle seg is not straight (with out geometric node) i can suggest you to use an additional new seg like is explain in the wiki:
https://wazeopedia.waze.com/wiki/Global ... n_segments

A++!
seb-d59
Waze Local Champs
Waze Local Champs
 
Posts: 1851
Joined: Fri Jan 03, 2014 8:01 am
Location: Croix (59)
Has thanked: 507 times
Been thanked: 605 times

Re: [Script] WME Junction Angle Info

Postby abusimbel16 » Sun Jan 19, 2020 10:03 am

If I see that correctly, this string prevents the checking of a "penalty for medium u-turns" for PS:
Code: Select all
 if (! Ja_is_up_to_primary_road (fromSegment)) return;

The question now is: is that correct? Is the penalty only be considered with mH and higher or even with PS?
abusimbel16
State Manager
State Manager
 
Posts: 306
Joined: Wed Dec 16, 2015 4:30 pm
Has thanked: 104 times
Been thanked: 124 times

Re: [Script] WME Junction Angle Info

Postby seb-d59 » Sun Jan 19, 2020 12:27 pm

I'm testing an modification.
So now, on a segment with a length < 15m, JAI calculate the angle with an "virtual straight segment".
ituajr wrote:Waze avoids routing through this curved segment, which has parallel in/out segments. This segment matches the Wiki requirements for U-turn prevention, but JAI doesn't flag it as a U-turn to be prevented.

now:
JAI_01.jpg
U-Turn_avoid
(18.26 KiB) Downloaded 45 times

ituajr wrote:Waze allows routing through this curved segment, which has in/out segments almost at right angles. This segment does not match the Wiki requirements for U-turn prevention, but JAI flags it as a U-turn to be prevented.

now:
JAI_02.jpg
U-Turn_allowed
(13.95 KiB) Downloaded 49 times

ituajr wrote:My conclusion is that the Wiki is correct, and JAI gets it wrong on curved segments.

I think with this modification, JAI is in accord with the Wiki.

If you are in accord with this, i can push the change.
seb-d59
Waze Local Champs
Waze Local Champs
 
Posts: 1851
Joined: Fri Jan 03, 2014 8:01 am
Location: Croix (59)
Has thanked: 507 times
Been thanked: 605 times

Previous

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: RichardPyne