[Script] WME Junction Node Fixer v0.2.1 2017-08-16

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

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 Node Fixer v0.0.8.2 2014-01-29

Postby doctorkb » Thu Mar 27, 2014 11:21 pm

Can I suggest that lower ranking be split before longer?

If the short segment is a parking lot, it should still be the one to get a penalty over a street...
doctorkb
Coordinators
Coordinators
 
Posts: 4083
Joined: Wed Nov 04, 2009 9:17 am
Location: Edmonton, Alberta, Canada
Has thanked: 623 times
Been thanked: 1617 times

Re: [Script] WME Junction Node Fixer v0.0.8.2 2014-01-29

Postby bgodette » Thu Mar 27, 2014 11:12 pm

berestovskyy wrote:IMO we should split the segment with the lower road type (i.e. parking lot rather than highway), or the longer one, or the segment with the higher ID. That is the tie-breaker I'm using in Validator...
Split the longer of the two, else split the lower ranking Type, else split the youngest segment, else split one-way vs two-way, else split the highest segment id (it was created/imported later).

The first rule should almost always match except for special stacking hacks to make right+left turn restricted (and the mirror for rhd countries). The common match will always have a geometry point to split on, the uncommon will have to split on 1/2 total length if there are no intermediate geometry points.
bgodette
Waze Global Champs
Waze Global Champs
 
Posts: 3433
Joined: Wed Jul 06, 2011 8:19 pm
Location: Denver, CO
Has thanked: 114 times
Been thanked: 537 times

Re: [Script] WME Junction Node Fixer v0.0.8.2 2014-01-29

Postby Jay91150 » Thu Mar 27, 2014 4:48 pm

It hadn't occurred to me that some of these would have differing road types, thanks for pointing that out. Overwhelmingly the ones I'm having to deal with are roads which are essentially large square loops. Here's an example.
Jay91150
 
Posts: 384
Joined: Thu Jan 23, 2014 8:01 pm
Location: Bragg Creek, Alberta, Canada
Has thanked: 97 times
Been thanked: 91 times

Re: [Script] WME Junction Node Fixer v0.0.8.2 2014-01-29

Postby berestovskyy » Thu Mar 27, 2014 4:44 pm

IMO we should split the segment with the lower road type (i.e. parking lot rather than highway), or the longer one, or the segment with the higher ID. That is the tie-breaker I'm using in Validator...
berestovskyy
 
Posts: 839
Joined: Fri Jul 15, 2011 1:50 pm
Has thanked: 259 times
Been thanked: 713 times

Re: [Script] WME Junction Node Fixer v0.0.8.2 2014-01-29

Postby Jay91150 » Thu Mar 27, 2014 4:23 pm

Brilliant, thanks :)

For ditchi56 - as for which one to break up, I'd suggest the longest one, and if they are of exactly the same length, the tie-breaker could be either one (pick the lower-numbered, or higher-numbered, and do that one consistently).
Jay91150
 
Posts: 384
Joined: Thu Jan 23, 2014 8:01 pm
Location: Bragg Creek, Alberta, Canada
Has thanked: 97 times
Been thanked: 91 times

Re: [Script] WME Junction Node Fixer v0.0.8.2 2014-01-29

Postby bgodette » Thu Mar 27, 2014 4:14 pm

Jay91150 wrote:Is there any possibility in getting JNF updated to "fix" 'same endpoints drivable segments' in a similar fashion to how it fixes self-connecting loops, so that I can just hit one node of a 'same endpoints' with the 'qw' key combination and it'll automatically break the segment in question into two? Or is there another script/extension (for Chrome please :)) that will do that?

It'd save me a huge amount of time getting rid of thousands of these segments in my city, rather than drawing a road intersecting the segment and then deleting it.
Yes, it's something I am working on, as well as updating the node removal bookmarklet to follow the same rules.
bgodette
Waze Global Champs
Waze Global Champs
 
Posts: 3433
Joined: Wed Jul 06, 2011 8:19 pm
Location: Denver, CO
Has thanked: 114 times
Been thanked: 537 times

Re: [Script] WME Junction Node Fixer v0.0.8.2 2014-01-29

Postby ditchi56 » Thu Mar 27, 2014 3:35 pm

Jay91150 wrote:Is there any possibility in getting JNF updated to "fix" 'same endpoints drivable segments' in a similar fashion to how it fixes self-connecting loops, so that I can just hit one node of a 'same endpoints' with the 'qw' key combination and it'll automatically break the segment in question into two? Or is there another script/extension (for Chrome please :)) that will do that?

It'd save me a huge amount of time getting rid of thousands of these segments in my city, rather than drawing a road intersecting the segment and then deleting it.

What a good idea!

But it sounds like a job for a new script to me. If you try to use JNF, presumably having selected a node, how would it choose which of (at least) two roads to put the new node in?

Easier for you to select a segment, put the cursor at the point you want a new node, and type some magic key combination to trigger a new script. Unfortunately I haven't the foggiest idea how to write scripts, so someone else will have to step forward...
ditchi56
Country Manager
Country Manager
 
Posts: 5002
Joined: Tue May 29, 2012 12:35 pm
Has thanked: 1131 times
Been thanked: 2097 times

Re: [Script] WME Junction Node Fixer v0.0.8.2 2014-01-29

Postby Jay91150 » Thu Mar 27, 2014 2:27 pm

Is there any possibility in getting JNF updated to "fix" 'same endpoints drivable segments' in a similar fashion to how it fixes self-connecting loops, so that I can just hit one node of a 'same endpoints' with the 'qw' key combination and it'll automatically break the segment in question into two? Or is there another script/extension (for Chrome please :)) that will do that?

It'd save me a huge amount of time getting rid of thousands of these segments in my city, rather than drawing a road intersecting the segment and then deleting it.
Jay91150
 
Posts: 384
Joined: Thu Jan 23, 2014 8:01 pm
Location: Bragg Creek, Alberta, Canada
Has thanked: 97 times
Been thanked: 91 times

Re: [Script] WME Junction Node Fixer v0.0.8.2 2014-01-29

Postby BellHouse » Thu Mar 27, 2014 7:07 am

qwaletee wrote:I did various searches relating to the problem and only found the posts going on in the last few days, and one reference to a Chrome problem in January.

Yes, I agree there is close to no reference in the "open" parts of this forum. But I was told there are many references in the Global Champs area. ;)
BellHouse
Waze Global Champs
Waze Global Champs
 
Posts: 3585
Joined: Sun May 12, 2013 5:57 pm
Location: Cologne / Germany
Has thanked: 821 times
Been thanked: 2659 times

Re: [Script] WME Junction Node Fixer v0.0.8.2 2014-01-29

Postby qwaletee » Wed Mar 26, 2014 4:58 pm

bgodette wrote:
qwaletee wrote:Please see this new thread on loss of elevation data that may be due to JNF (or not!).
This is not a problem caused by JNF, but a problem caused by Features (WME backend) and propagation delay. JNF attempts to deal with the problems (data consistency and propagation delay) by issuing another data reload after successful saves. This issue has been around for about 2 years now, and has been referenced multiple times in this thread.


I posted the new thread in response to a another editor who (reasonably) asked that it be broken out into its own thread. I did various searches relating to the problem and only found the posts going on in the last few days, and one reference to a Chrome problem in January.
qwaletee
US Waze Champs
US Waze Champs
 
Posts: 2911
Joined: Wed Feb 13, 2013 1:42 am
Location: NYC Metro - Active throughout NE^2 (Northeast & New England)
Has thanked: 231 times
Been thanked: 1120 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: dhschneider, MapOMatic