[Script] WME Advanced Closures

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 Advanced Closures

Postby jm6087 » Fri Jul 06, 2018 4:15 pm

MapOMatic wrote:Ideally someone would capture these as "issues" in GitHub so there's no chance they get buried in the forum, and we can work through them and check them off as we get time.

If you have a GitHub account or don't mind setting one up (it's free), you can post issues directly:

https://github.com/WazeDev/WME-Advanced-Closures/issues

Just make sure you search any existing issues to see if someone has already submitted the same thing. Though if you accidentally do that, it's not a big deal ;)


I just did a quick scan of the previous thread and only found one other feature request (other than mine) listed. I added that to GitHub issues for this script.
jm6087
US Waze Champs
US Waze Champs
 
Posts: 3604
Joined: Wed Jun 17, 2015 10:05 pm
Location: Texas
Has thanked: 610 times
Been thanked: 1468 times

Re: [Script] WME Advanced Closures

Postby Priso19 » Fri Jul 06, 2018 7:03 pm

I do not know how the rest of the world works but for France we use Google Sheets to generate a .csv file for our mega traffic event. Often these files are used from one year to the next.

You can see an example on our file on sheet : (2) Exemple Tour de France

A new need is born with the availability of .gpx files for the different races during sports events.
It happens more and more often. We would need an extension to Advanced Closures or a new script I don’t really know, able to turn a gps trace into a permalink list (text file) that we could copy in our Google sheets.

This feature would be of great help with the tedious creation of permalink which is not an exciting thing.
Priso19
Country Manager
Country Manager
 
Posts: 567
Joined: Tue Nov 15, 2011 4:38 pm
Location: Paris, France
Has thanked: 122 times
Been thanked: 125 times

Re: [Script] WME Advanced Closures

Postby crazycaveman » Fri Jul 06, 2018 7:49 pm

Priso19 wrote:I do not know how the rest of the world works but for France we use Google Sheets to generate a .csv file for our mega traffic event. Often these files are used from one year to the next.

You can see an example on our file on sheet : (2) Exemple Tour de France

A new need is born with the availability of .gpx files for the different races during sports events.
It happens more and more often. We would need an extension to Advanced Closures or a new script I don’t really know, able to turn a gps trace into a permalink list (text file) that we could copy in our Google sheets.

This feature would be of great help with the tedious creation of permalink which is not an exciting thing.

That would be a good idea for a separate script, to read a coordinate of some sort (KML, GeoJSON, GPX, WKT, etc.) and generate a list of segments it overlaps; probably wouldn't be a good fit for this one. WME Geometries might be a good fit
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 828
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 351 times
Been thanked: 516 times

Re: [Script] WME Advanced Closures

Postby shmupi » Tue Jul 10, 2018 8:42 am

Perfect. Many thanks !

Shmupi
Israel Coordinator & Community Leader & GC
Country Manager : Israel, Jordan, Thailand, Romania
Resolved Update Requests : 185K

[ img ]
shmupi
Waze Global Champs
Waze Global Champs
 
Posts: 20944
Joined: Tue Jan 06, 2009 7:16 am
Has thanked: 6774 times
Been thanked: 2164 times

Re: [Script] WME Advanced Closures

Postby Priso19 » Wed Jul 11, 2018 3:03 pm

It's not done yet...
Priso19
Country Manager
Country Manager
 
Posts: 567
Joined: Tue Nov 15, 2011 4:38 pm
Location: Paris, France
Has thanked: 122 times
Been thanked: 125 times

Re: [Script] WME Advanced Closures

Postby kjg53 » Sat Jul 28, 2018 7:40 pm

I'm running into an exception that prevents me from creating my closures. I'm doing the following:
Range Start: any date
Range End: any date
Start: 2100
Duration: 8 hrs
Select Each then All

Several closures appear in the preview.
Click on Apply
The exception TypeError: Cannot read property 'TWO_WAY' of undefined is thrown from this line:
direction = direction == "1" ? sc.DIRECTION.A_TO_B : direction == "2" ? sc.DIRECTION.B_TO_A : sc.DIRECTION.TWO_WAY;

The debugger shows that sc is an object that does not contain DIRECTION as a member.

Thanks
Kevin
kjg53
Map Raider
Map Raider
 
Posts: 359
Joined: Fri Oct 24, 2014 5:05 am
Location: Pearland, Texas, USA
Has thanked: 141 times
Been thanked: 48 times

Re: [Script] WME Advanced Closures

Postby jm6087 » Sat Jul 28, 2018 7:44 pm

I have not had any issues lately using the script. Could there be another reason? New road, unknown direction on it?

DM me in discord if you want me to give it a shot.
jm6087
US Waze Champs
US Waze Champs
 
Posts: 3604
Joined: Wed Jun 17, 2015 10:05 pm
Location: Texas
Has thanked: 610 times
Been thanked: 1468 times

Re: [Script] WME Advanced Closures

Postby jcnina » Sun Jul 29, 2018 8:35 pm

Definitely the script is not working now... either entering an individual closure or parsing a csv, on Chrome it loops and does nothing

Update:
Excecution stops at script line 760:
direction = direction == "1" ? sc.DIRECTION.A_TO_B : direction == "2" ? sc.DIRECTION.B_TO_A : sc.DIRECTION.TWO_WAY;
jcnina
José Carlos Nina
URUGUAY
jcnina
Waze Global Champs
Waze Global Champs
 
Posts: 323
Joined: Thu Feb 10, 2011 7:10 pm
Location: Uruguay
Has thanked: 534 times
Been thanked: 143 times

Re: [Script] WME Advanced Closures

Postby jm6087 » Sun Jul 29, 2018 9:04 pm

I just used it on several closures with no issues. Not sure if this makes a difference but I always set the direction as 2-way (even on one-way segments) unless I am closing a single direction of a 2-way segment (which I have not done in a while) I will test that out.

EDIT: My test of a single direction on a 2-way segment worked without problems.

What version are you running?
jm6087
US Waze Champs
US Waze Champs
 
Posts: 3604
Joined: Wed Jun 17, 2015 10:05 pm
Location: Texas
Has thanked: 610 times
Been thanked: 1468 times

Re: [Script] WME Advanced Closures

Postby jcnina » Sun Jul 29, 2018 9:24 pm

jm6087 wrote:What version are you running?


Ver 1.8.2 on Chrome

Tried with this setting:
2018-07-29_182121.png
Settings
(20.27 KiB) Downloaded 134 times


and get this on Chrome console:
2018-07-29_182159.png
(2.73 KiB) Downloaded 128 times
jcnina
José Carlos Nina
URUGUAY
jcnina
Waze Global Champs
Waze Global Champs
 
Posts: 323
Joined: Thu Feb 10, 2011 7:10 pm
Location: Uruguay
Has thanked: 534 times
Been thanked: 143 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: age4670, JustinS83, wolfmanwolf34