[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 JustinS83 » Thu Sep 05, 2019 10:09 pm

Priso19 wrote:Nothing new with the .csv parsing fonction ???

You are welcome to investigate and fix and send a pull request. My free time is extremely limited and I've never used his functionality before, so it would take a fair amount of debugging time.
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1325
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 337 times
Been thanked: 2345 times

Re: [Script] WME Advanced Closures

Postby Titan-ium » Mon Sep 16, 2019 4:39 pm

Hi guys

It's been a long time that I have not had any problems to apply Parse CSV closures effectively by clicking "Apply" a line is processed then nothing happens, so either apply manually or each time we have to click on "Apply"
Could you be a solution ??

Code: Select all
app-572e4daf1b3e2f0907e6.js:1 Error getting features TypeError: Cannot read property 'attributes' of null
    at e.initCityList (userscript.html?id=1198f306-759b-4f20-aefd-a1efbda09457:828)
    at initialize.triggerEvent (vendor-99b996b8d3cf37c75188.js:1)
    at e.mergeGetResponse (app-572e4daf1b3e2f0907e6.js:1)
    at app-572e4daf1b3e2f0907e6.js:1
(anonymous) @ app-572e4daf1b3e2f0907e6.js:1
Promise.catch (async)
value @ app-572e4daf1b3e2f0907e6.js:1
value @ app-572e4daf1b3e2f0907e6.js:1
value @ app-572e4daf1b3e2f0907e6.js:1
warReload @ userscript.html?id=24882511-f243-42ab-b81d-a252c60fd43b:31
triggerEvent @ vendor-99b996b8d3cf37c75188.js:1
moveTo @ vendor-99b996b8d3cf37c75188.js:1
setCenter @ vendor-99b996b8d3cf37c75188.js:1
WMEAC_Injected.WMEAC.csvApplyClosure @ VM1631:2556
WMEAC_Injected.WMEAC.CSVBatchApply @ VM1631:2848
(anonymous) @ VM1631:2829
setTimeout (async)
WMEAC_Injected.WMEAC.CSVApplyChecked @ VM1631:2829
app-572e4daf1b3e2f0907e6.js:1 Error getting features TypeError: Cannot read property 'attributes' of null
    at e.initCityList (userscript.html?id=1198f306-759b-4f20-aefd-a1efbda09457:828)
    at initialize.triggerEvent (vendor-99b996b8d3cf37c75188.js:1)
    at e.mergeGetResponse (app-572e4daf1b3e2f0907e6.js:1)
    at app-572e4daf1b3e2f0907e6.js:1
(anonymous) @ app-572e4daf1b3e2f0907e6.js:1
Promise.catch (async)
value @ app-572e4daf1b3e2f0907e6.js:1
value @ app-572e4daf1b3e2f0907e6.js:1
value @ app-572e4daf1b3e2f0907e6.js:1
WMEAC_Injected.WMEAC.reloadRoadLayer @ VM1631:177
mapMovedEnd @ VM1631:2607
setTimeout (async)
WMEAC_Injected.WMEAC.csvApplyClosure @ VM1631:2611
WMEAC_Injected.WMEAC.CSVBatchApply @ VM1631:2848
(anonymous) @ VM1631:2829
VM1611:1 POST https://www.waze.com/row-Descartes/app/Features?language=fr&bbox=0%2C0%2C0%2C0&ignoreWarnings= 406
(anonymous) @ VM1611:1
y @ app-572e4daf1b3e2f0907e6.js:1
S @ app-572e4daf1b3e2f0907e6.js:1
value @ app-572e4daf1b3e2f0907e6.js:1
(anonymous) @ app-572e4daf1b3e2f0907e6.js:1
p @ app-572e4daf1b3e2f0907e6.js:1
value @ app-572e4daf1b3e2f0907e6.js:1
WMEAC_Injected.WMEAC.addClosure @ VM1631:2151
applyInWME @ VM1631:1671
applyClosure @ VM1631:2581
readyToApply @ VM1631:2595
setTimeout (async)
readyToApply @ VM1631:2591
setTimeout (async)
readyToApply @ VM1631:2591
setTimeout (async)
readyToApply @ VM1631:2591
mapMovedEnd @ VM1631:2608
setTimeout (async)
WMEAC_Injected.WMEAC.csvApplyClosure @ VM1631:2611
WMEAC_Injected.WMEAC.CSVBatchApply @ VM1631:2848
(anonymous) @ VM1631:2829
app-572e4daf1b3e2f0907e6.js:1 Error getting features TypeError: Cannot read property 'attributes' of null
    at e.initCityList (userscript.html?id=1198f306-759b-4f20-aefd-a1efbda09457:828)
    at initialize.triggerEvent (vendor-99b996b8d3cf37c75188.js:1)
    at e.mergeGetResponse (app-572e4daf1b3e2f0907e6.js:1)
    at app-572e4daf1b3e2f0907e6.js:1
(anonymous) @ app-572e4daf1b3e2f0907e6.js:1
Promise.catch (async)
value @ app-572e4daf1b3e2f0907e6.js:1
value @ app-572e4daf1b3e2f0907e6.js:1
value @ app-572e4daf1b3e2f0907e6.js:1
warReload @ userscript.html?id=24882511-f243-42ab-b81d-a252c60fd43b:31
triggerEvent @ vendor-99b996b8d3cf37c75188.js:1
moveTo @ vendor-99b996b8d3cf37c75188.js:1
setCenter @ vendor-99b996b8d3cf37c75188.js:1
WMEAC_Injected.WMEAC.csvApplyClosure @ VM1631:2556
WMEAC_Injected.WMEAC.CSVBatchApply @ VM1631:2848
(anonymous) @ VM1631:2853
applyFailure @ VM1631:2575
(anonymous) @ VM1631:2130
Promise.catch (async)
WMEAC_Injected.WMEAC.addClosure @ VM1631:2151
applyInWME @ VM1631:1671
applyClosure @ VM1631:2581
readyToApply @ VM1631:2595
setTimeout (async)
readyToApply @ VM1631:2591
setTimeout (async)
readyToApply @ VM1631:2591
VM1631:2568 Uncaught TypeError: Cannot read property 'forEach' of undefined
    at applyFailure (<anonymous>:2568:20)
    at WMEAC_Injected.WMEAC.ClassClosure.applyInWME (<anonymous>:1656:13)
    at applyClosure (<anonymous>:2581:29)
    at readyToApply (<anonymous>:2595:13)
applyFailure @ VM1631:2568
applyInWME @ VM1631:1656
applyClosure @ VM1631:2581
readyToApply @ VM1631:2595
setTimeout (async)
readyToApply @ VM1631:2591
mapMovedEnd @ VM1631:2608
setTimeout (async)
WMEAC_Injected.WMEAC.csvApplyClosure @ VM1631:2611
WMEAC_Injected.WMEAC.CSVBatchApply @ VM1631:2848
(anonymous) @ VM1631:2853
applyFailure @ VM1631:2575
(anonymous) @ VM1631:2130
app-572e4daf1b3e2f0907e6.js:1 Error getting features TypeError: Cannot read property 'attributes' of null
    at e.initCityList (userscript.html?id=1198f306-759b-4f20-aefd-a1efbda09457:828)
    at initialize.triggerEvent (vendor-99b996b8d3cf37c75188.js:1)
    at e.mergeGetResponse (app-572e4daf1b3e2f0907e6.js:1)
    at app-572e4daf1b3e2f0907e6.js:1
(anonymous) @ app-572e4daf1b3e2f0907e6.js:1
Promise.catch (async)
value @ app-572e4daf1b3e2f0907e6.js:1
value @ app-572e4daf1b3e2f0907e6.js:1
value @ app-572e4daf1b3e2f0907e6.js:1
WMEAC_Injected.WMEAC.reloadRoadLayer @ VM1631:177
mapMovedEnd @ VM1631:2607
setTimeout (async)
WMEAC_Injected.WMEAC.csvApplyClosure @ VM1631:2611
WMEAC_Injected.WMEAC.CSVBatchApply @ VM1631:2848
(anonymous) @ VM1631:2853
applyFailure @ VM1631:2575
(anonymous) @ VM1631:2130




Thank you
Titan-ium
State Manager
State Manager
 
Posts: 856
Joined: Mon Apr 17, 2017 12:04 pm
Location: Dorlisheim dans le Bas-Rhin Alsace
Has thanked: 196 times
Been thanked: 194 times

Re: [Script] WME Advanced Closures

Postby jonv-uk » Tue Sep 24, 2019 10:40 am

How do you change the duration to hours instead of days?

Trying to add a daily closure 9:30 - 15:30 but the preview show 9:30 -1:00 (next day) regardless of what I type in the end time box.
Jon
AM Aire Valley, West Yorkshire
[ img ][ img ][ img ]
jonv-uk
 
Posts: 170
Joined: Tue Dec 13, 2016 8:28 pm
Location: Uxbridge, London
Has thanked: 20 times
Been thanked: 42 times

Re: [Script] WME Advanced Closures

Postby dspille » Tue Sep 24, 2019 12:07 pm

There are two fields for duration... the top one is for days (leave it at 0), and the one below for hours:minutes (use that one).
Thanks,
dspille
Country Manager, Multi-State Manager - South Central Region

SCR Wiki
[ img ][ img ][ img ][ img ][ img ][ img ]
dspille
Country Manager
Country Manager
 
Posts: 379
Joined: Sat Mar 12, 2016 11:05 pm
Location: Texas, USA
Has thanked: 512 times
Been thanked: 135 times

Re: [Script] WME Advanced Closures

Postby sketch » Fri Sep 27, 2019 7:59 pm

jonv-uk wrote:How do you change the duration to hours instead of days?

Trying to add a daily closure 9:30 - 15:30 but the preview show 9:30 -1:00 (next day) regardless of what I type in the end time box.

The box you're entering 15:30 into isn't the end time box, it's the duration box. Entering 9:30 and then 15:30 says "The closure starts at 9:30 and is 15 hours and 30 minutes long". 9:30 + 15 hrs 30 min = 01:00 (+1).

It's weird but it requires a little mental math and getting used to. Your closure would be entered 9:30 and then 6:00.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6444
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2050 times
Been thanked: 2542 times

Re: [Script] WME Advanced Closures

Postby ituajr » Wed Oct 23, 2019 6:29 am

Advanced Closures appears to be getting confused by South Australia's half-hour timezone. (Currently UTC+10:30). The screenshot below shows that I specified a start time of 20:00, but the Preview shows the start time as 19:30. The closures that it applies also show the start time as 19:30.
Advanced closures.JPG
(48.62 KiB) Downloaded 100 times

This is for segments in South Australia, editing on a PC in South Australia with the timezone set to UTC+09:30 plus Daylight Saving.
[ img ] [ img ] [ img ]
Country Coordinator for Australia.
77777 km driven with Waze, 2034 km paved,
8586 Update Requests resolved, 14100 map problems closed.
ituajr
Waze Global Champs
Waze Global Champs
 
Posts: 3897
Joined: Wed Oct 26, 2011 11:23 pm
Location: South Australia
Has thanked: 400 times
Been thanked: 2106 times

Re: [Script] WME Advanced Closures

Postby arthurfsv » Fri Nov 01, 2019 2:43 pm

Hi all.

Hey guys, you think it is possible to add a "emergency closure" button to this script, that would launch a 24h and 2 way direction closure to every segment selected?

We are working with some CCP partners with emergency road closures during floods, and this would be a fast way to add them with permalinks.

Thanks!
Arthur Fernando
AM - Belo Horizonte (Região oeste, centro e centro-sul)

É iniciante nas edições? Confira estes links básicos: manual, guia e práticas.

Quer melhorar a organização dos Places? Veja esta proposta
[ img ]
arthurfsv
Local Champ Mentor
Local Champ Mentor
 
Posts: 1093
Joined: Tue Jul 01, 2014 7:04 pm
Location: Belo Horizonte
Has thanked: 712 times
Been thanked: 861 times

Re: [Script] WME Advanced Closures

Postby juliansean » Fri Nov 01, 2019 5:40 pm

That’s a great idea!
Sean Julian
SM: TX, LA, MS, AR, OK
AM: SE FL, Boston, MA, Brooklyn, NY, Bronx, NY, Manhattan, NY, Queens, NY, E CA, SW KS

[ img ][ img ][ img ][ img ][ img ]
juliansean
State Manager
State Manager
 
Posts: 929
Joined: Mon Jul 04, 2016 3:33 am
Has thanked: 446 times
Been thanked: 287 times

Re: [Script] WME Advanced Closures

Postby jcnina » Wed Nov 20, 2019 2:43 pm

This script is one of many broken due today's WME actualization
jcnina
José Carlos Nina
URUGUAY
jcnina
Waze Global Champs
Waze Global Champs
 
Posts: 324
Joined: Thu Feb 10, 2011 7:10 pm
Location: Uruguay
Has thanked: 536 times
Been thanked: 146 times

Previous

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: n4dog