Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
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.
Post by dBsooner
vince1612 wrote:Thanks for all the answers, for 3 it was apparently already done for States and I must have forgot, I only asked again because it didn't seem to work when I tried the script at work. But I'll try again from home. ;)
Ahhh.. You are right! We did set it up for states. If you can give me a PL to a UR and the list it should switch to, I'll test it. :)
dBsooner
Map Editor - Level 5
Map Editor - Level 5
Posts: 767
Has thanked: 367 times
Been thanked: 631 times
Send a message
https://s.waze.tools/scrp.pnghttps://s.waze.tools/am.pnghttps://s.waze.tools/betc.pnghttps://s.waze.tools/beta.pnghttps://s.waze.tools/mapr.pnghttps://storage.googleapis.com/wazeopedia-files/7/74/Waze_signature_200k_plain.pnghttps://s.waze.tools/c5s.png
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• T-Mobile | iPhone 14 Pro | iOS Latest | Waze Latest Beta

Post by dBsooner
vince1612 wrote:
dBsooner wrote:If you can give me a PL to a UR and the list it should switch to, I'll test it. :)
Thanks, I tried and it doesn't seem to switch on its own from home either.
German speaking State UR: https://www.waze.com/editor/?env=row&lo ... t=13432243
French speaking State UR: https://www.waze.com/editor/?env=row&lo ... t=13502508
Found the issue. Auto switching works, but the state wasn't listed in the spreadsheet. I added it and it works now. So now we have:

French:
state.SZ.Vaud
state.SZ.Neuchâtel
state.SZ.Genève
state.SZ.Jura

German:
state.SZ.Basel-Landschaft
state.SZ.Nidwalden
state.SZ.St. Gallen
state.SZ.Thurgau
state.SZ.Aargau
state.SZ.Appenzell Innerrhoden
state.SZ.Basel-Stadt
state.SZ.Obwalden
state.SZ.Zürich
state.SZ.Zug
state.SZ.Solothurn
state.SZ.Graubünden
state.SZ.Uri
state.SZ.Schaffhausen
state.SZ.Luzern
state.SZ.Glarus
state.SZ.Appenzell Ausserrhoden
state.SZ.Schwyz
state.SZ.Bern

Italian:
state.SZ.Ticino

The state name must be exactly as it comes back from the command "W.model.getTopState().name". Country (used in both a country wide setup and state specific) needs to be the exact abbreviation that comes back from the command "W.model.getTopCountry().abbr".

I have verified both the PLs you gave here work for me. :) Make sure you have the setting for "Automatically switch comment lists" enabled in the top box of the Settings tab. The German one did not work because Bern was not in the list. But it does now as I added it.

Thanks for your enthusiasm, Vince!!
dBsooner
Map Editor - Level 5
Map Editor - Level 5
Posts: 767
Has thanked: 367 times
Been thanked: 631 times
Send a message
https://s.waze.tools/scrp.pnghttps://s.waze.tools/am.pnghttps://s.waze.tools/betc.pnghttps://s.waze.tools/beta.pnghttps://s.waze.tools/mapr.pnghttps://storage.googleapis.com/wazeopedia-files/7/74/Waze_signature_200k_plain.pnghttps://s.waze.tools/c5s.png
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• T-Mobile | iPhone 14 Pro | iOS Latest | Waze Latest Beta

Post by dBsooner
reuvenirony wrote:
reuvenirony wrote:Sometimes the script doesn't load. It is waiting to be fully initialized..
Any idea why?
Anyone with this issue?
Thanks,
Can you show me your console.log (F12 on the keyboard). Also, try disabling all other scripts and extensions before taking the screenshot of the console log so we don't lose information in it that might be helpful. Error (red) are the most important thing we are looking for.
dBsooner
Map Editor - Level 5
Map Editor - Level 5
Posts: 767
Has thanked: 367 times
Been thanked: 631 times
Send a message
https://s.waze.tools/scrp.pnghttps://s.waze.tools/am.pnghttps://s.waze.tools/betc.pnghttps://s.waze.tools/beta.pnghttps://s.waze.tools/mapr.pnghttps://storage.googleapis.com/wazeopedia-files/7/74/Waze_signature_200k_plain.pnghttps://s.waze.tools/c5s.png
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• T-Mobile | iPhone 14 Pro | iOS Latest | Waze Latest Beta

Post by dBsooner
reuvenirony wrote:Sorry
The above are with some extensions enabled.
This image is only with URC-E

https://i.ibb.co/0ffm8Sj/1.jpg
There we go.. That is what I am looking for. Can you send me the PL to that location? I can see it, but I'd rather have it in text I can copy / paste to make sure we get to the same spot.

If you have to continue debugging for me, you can use the filter: "f3a1" (the last 4 characters of the URC-E script hash for you) and that will only show the logs pertaining to URC-E.

https://i.ibb.co/fr1xrwS/filter.png

Looks like I may have an issue with the restrictions setup in that area. That's why I asked for a PL. You're not actually failing, a timeout is in place waiting for the checkRestrictions to complete before moving on. So it's taking like 30 seconds (I believe is what I set that to) before the script continues loading. I'll look into what is happening there to make it so the checking of the restrictions completes and moves on without timing out.

Thank you for the help!
dBsooner
Map Editor - Level 5
Map Editor - Level 5
Posts: 767
Has thanked: 367 times
Been thanked: 631 times
Send a message
https://s.waze.tools/scrp.pnghttps://s.waze.tools/am.pnghttps://s.waze.tools/betc.pnghttps://s.waze.tools/beta.pnghttps://s.waze.tools/mapr.pnghttps://storage.googleapis.com/wazeopedia-files/7/74/Waze_signature_200k_plain.pnghttps://s.waze.tools/c5s.png
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• T-Mobile | iPhone 14 Pro | iOS Latest | Waze Latest Beta

Post by dBsooner
@reuvenirony : It's something going on with native WME. At zoom level 0 at that location, there are literally hundreds of MCs, URs, PURs, MPs, etc. WME polls a backend server to gather all the data it needs for the current map view. That URL is returning an internal server error causing WME to stop loading everything it needs. I continue to try to get the "country" of the current map view for 30 seconds (which will fail since WME had an internal error), then I continue to load URC-E. I will let the developers know about the issue, but for you to get around it for now, don't refresh WME at zoom level 0. Zoom in further.
dBsooner
Map Editor - Level 5
Map Editor - Level 5
Posts: 767
Has thanked: 367 times
Been thanked: 631 times
Send a message
https://s.waze.tools/scrp.pnghttps://s.waze.tools/am.pnghttps://s.waze.tools/betc.pnghttps://s.waze.tools/beta.pnghttps://s.waze.tools/mapr.pnghttps://storage.googleapis.com/wazeopedia-files/7/74/Waze_signature_200k_plain.pnghttps://s.waze.tools/c5s.png
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• T-Mobile | iPhone 14 Pro | iOS Latest | Waze Latest Beta

Post by dBsooner
reuvenirony wrote:Permalink: https://www.waze.com/editor/?env=il&lon ... 151&zoom=0

With f3a1 filter

Without f3a1 filter

See also other errors when panning around, WME stops loading UR's, MP's etc..

Hope you can solve this.
Thanks
This is an issue with the Israel servers. I have reported it to staff developers.

For now, you can change your environment from "Israel Only" to "World" or "NA Only". Or, you can simply zoom in further and reload WME. There is no way around the error you are getting. You get it even without any script installed. It's an issue with WME itself.
dBsooner
Map Editor - Level 5
Map Editor - Level 5
Posts: 767
Has thanked: 367 times
Been thanked: 631 times
Send a message
https://s.waze.tools/scrp.pnghttps://s.waze.tools/am.pnghttps://s.waze.tools/betc.pnghttps://s.waze.tools/beta.pnghttps://s.waze.tools/mapr.pnghttps://storage.googleapis.com/wazeopedia-files/7/74/Waze_signature_200k_plain.pnghttps://s.waze.tools/c5s.png
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• T-Mobile | iPhone 14 Pro | iOS Latest | Waze Latest Beta

Post by dBsooner
2019.08.16.01 is out!

Changelog:

Code: Select all

2019.08.16.01: NEW: Custom text replace variables via sheets.
               NEW: Custom tagline setting. (Per comment list or "master")
               NEW: More shortcuts: current date, current date casual, current day of week,
                    current time, current time casual, custom tagline, place address, place
                    name, UR type. (Available via UR panel and variable in comments)
               NEW: $SELSEGS_WITH_CITY$ : Same as $SELSEGS$, except includes 'in CITY' if
                    selected segment(s) have a matching primary city, or only one has a
                    primary city.
               NEW: Link to enable / disable URCE UR filtering added to comment tab.
               BUGFIX: Per comment list text boxes not saving correctly.
               BUGFIX: Check for ALL $$ in comment before automatically clicking send.
               BUGFIX: Selected segments variable replacement could show undefined.
Here is the info on each of the new items:
  • Custom variables: Allows you to create your own custom variables to use throughout your comments. Custom variables can be nested. If you are a URC-E master control comment list maintainer, your tab has already been setup to allow for this. If you have your own custom sheet, you will need to modify your "Data validation" for column C (URSTATUS) to allow "CUSTOM VAR" to be a valid option.
    To use:
    1. Set the title (column A) to the variable name you would like to use. WITHOUT the $'s.
      Ex: CUSTOM_GREETING
    2. Set the "Comment" (column B) to be the replace text you would like to use.
      Ex: Good $CURRENTDATE_TIME_CASUAL$! I am a fellow Wazer like you!
    3. Set the "URSTATUS" (column C) to be "CUSTOM VAR".
    4. Wherever you want to use this variable in your other comments, simply place the name wrapped in $'s in the comment.
      Ex: $CUSTOM_GREETING$ I see you reported a $URTYPE$ issue near $SELSEGS_WITH_CITY$. Would you mind telling me more information that might help me assist with solving the issue? ...
  • Custom tagline: This is to allow users to have a single "tagline" that can be added to the end of each comment they want. A managed list might use this and tell you what to do. An example of a custom tagline: "If you still have issues after this report is closed. Please feel free to email me at my@email.com." Then a comment would have the variable $CUSTOMTAGLINE$ in it and would insert your tagline there. The custom tagline is a "per comment list" setting. Meaning you can have a different one for each comment list, or have them use the "master" setting.
  • More shortcuts:
    • Current date (variable $CURRENTDATE_DATE$): Inserts the current date with 2-digit day, 2 digit month and 4 digit year in the current locale format.
    • Current date casual (variable $CURRENTDATE_DATE_CASUAL$): Inserts the current date as full month name and 2 digit day in the current locale format.
    • Current day of week (variable $CURRENTDATE_DAY_OF_WEEK$): Inserts the current day of the week in the current locale language.
    • Current time (variable $CURRENTDATE_TIME$): Inserts the current time in 2 digit hour, 2 digit minute and abbreviated timezone, in the current locale.
    • Current time casual (variable $CURRENTDATE_TIME_CASUAL$): Inserts "night" for time 2100-0359, "morning" for time 0400-1159, "afternoon" for time 1200-1759 and "evening" for time 1800-2059. These will be translated to the current language, if available.
    • Custom tagline (variable $CUSTOMTAGLINE$): Inserts the custom tagline for the currently loaded comment list, or replaces it with nothing if blank.
    • Place address (variable $PLACE_ADDRESS$): Inserts the address, with city and state (as appropriate) for the currently select place.
    • Place name (variable $PLACE_NAME$): Inserts the name of the currently selected place, or "residential place" (in the current language) if it is an RPP.
    • Selected segments with city (variable $SELSEGS_WITH_CITY$): Same as $SELSEGS$, except includes the city name if 1) one selected segment and it contains a primary city 2) two selected segments and 2a) both have the same city as their primary OR 2b) one has a primary city and the other is set to "no city".
    • UR type: (variable $URTYPE$): Inserts the UR type of the currently selected UR.
dBsooner
Map Editor - Level 5
Map Editor - Level 5
Posts: 767
Has thanked: 367 times
Been thanked: 631 times
Send a message
https://s.waze.tools/scrp.pnghttps://s.waze.tools/am.pnghttps://s.waze.tools/betc.pnghttps://s.waze.tools/beta.pnghttps://s.waze.tools/mapr.pnghttps://storage.googleapis.com/wazeopedia-files/7/74/Waze_signature_200k_plain.pnghttps://s.waze.tools/c5s.png
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• T-Mobile | iPhone 14 Pro | iOS Latest | Waze Latest Beta

Post by dBsooner
boonie-oet-gelaen wrote:Both is this version and also the previous version the button "sign in/autorize" will ask for which Google account I want to use. As expected. But after I select one, I get an error message.

"Inloggen met Google is tijdelijk uitgeschakeld voor deze app
Deze app is nog niet geverifieerd door Google voor gebruik van de functie 'Inloggen bij Google'."

This is in Dutch but it is saying that this app is not yet verified by Google. And that logging in with Google is temporarily switched off.

Is it a general issue? Or am I doing something wrong?

Thanks,
Dave
Unfortunately, it is not something you are doing wrong. You only need to sign in / authorize if you are going to create or convert a comment list. If you are using a list already available, or using one you or someone else already converted / created, you don’t need to sign in.

Google limits unverified scripts / apps that access certain data to 100 unique users. To use more, the app needs to be authorized. I cannot authorize URC-Es backend google app because it would require I own the referring domain (waze.com).

I am currently trying to decide the best way to go forward. It will likely be that the creation / conversion process will become more manual. Meaning you have to copy the template sheet manually, then copy the data into it manually. I don’t know how else to get around this with the latest version of the Drive and Sheet APIs.


Sent from my iPhone using Tapatalk
dBsooner
Map Editor - Level 5
Map Editor - Level 5
Posts: 767
Has thanked: 367 times
Been thanked: 631 times
Send a message
https://s.waze.tools/scrp.pnghttps://s.waze.tools/am.pnghttps://s.waze.tools/betc.pnghttps://s.waze.tools/beta.pnghttps://s.waze.tools/mapr.pnghttps://storage.googleapis.com/wazeopedia-files/7/74/Waze_signature_200k_plain.pnghttps://s.waze.tools/c5s.png
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• T-Mobile | iPhone 14 Pro | iOS Latest | Waze Latest Beta

Post by dBsooner
dBsooner wrote:
boonie-oet-gelaen wrote:Both is this version and also the previous version the button "sign in/autorize" will ask for which Google account I want to use. As expected. But after I select one, I get an error message.

"Inloggen met Google is tijdelijk uitgeschakeld voor deze app
Deze app is nog niet geverifieerd door Google voor gebruik van de functie 'Inloggen bij Google'."

This is in Dutch but it is saying that this app is not yet verified by Google. And that logging in with Google is temporarily switched off.

Is it a general issue? Or am I doing something wrong?

Thanks,
Dave
Unfortunately, it is not something you are doing wrong. You only need to sign in / authorize if you are going to create or convert a comment list. If you are using a list already available, or using one you or someone else already converted / created, you don’t need to sign in.

Google limits unverified scripts / apps that access certain data to 100 unique users. To use more, the app needs to be authorized. I cannot authorize URC-Es backend google app because it would require I own the referring domain (waze.com).

I am currently trying to decide the best way to go forward. It will likely be that the creation / conversion process will become more manual. Meaning you have to copy the template sheet manually, then copy the data into it manually. I don’t know how else to get around this with the latest version of the Drive and Sheet APIs.


Sent from my iPhone using Tapatalk
It's official. URC-E has hit the Google API limit for amount of "users" allowed to authenticate with OAuth2 without being a verified app (with Google). The limit was 100 users. OAuth2 was only for creating your own custom spreadsheet OR converting your old URC style to URC-E. The functionality of URC-E was never in jeopardy. That being said, I cannot verify the app with Google as I can't add waze.com as an authorized domain (I don't own waze.com). So the limit can't be beaten. Therefor, I have to change how I approach creating user custom lists. The process going forward will be more manual. Unfortunately, it's all I can do. I'll have a beta out in the next day or so with the new process.
dBsooner
Map Editor - Level 5
Map Editor - Level 5
Posts: 767
Has thanked: 367 times
Been thanked: 631 times
Send a message
https://s.waze.tools/scrp.pnghttps://s.waze.tools/am.pnghttps://s.waze.tools/betc.pnghttps://s.waze.tools/beta.pnghttps://s.waze.tools/mapr.pnghttps://storage.googleapis.com/wazeopedia-files/7/74/Waze_signature_200k_plain.pnghttps://s.waze.tools/c5s.png
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• T-Mobile | iPhone 14 Pro | iOS Latest | Waze Latest Beta

Post by dBsooner
Rising_Sun wrote:Unable hovering over the tooltip, the tooltip popup close while moving the mouse curse from UR to the tooltip.
Here is the Camcoder
I can’t seem to duplicate this. From the recording, it looks like there may be another map element right under the tooltip that might be intercepting the mouse movement. Does this happen on all URs? Have you made sure another script isn’t interfering (disable all other scripts and test with just URC-E)? If it’s just that UR and it happens with only URC-E enabled, can you give me a PL to it? If it’s all URs and happens with just URC-E enabled, then I’m at a loss.


Sent from my iPhone using Tapatalk
dBsooner
Map Editor - Level 5
Map Editor - Level 5
Posts: 767
Has thanked: 367 times
Been thanked: 631 times
Send a message
https://s.waze.tools/scrp.pnghttps://s.waze.tools/am.pnghttps://s.waze.tools/betc.pnghttps://s.waze.tools/beta.pnghttps://s.waze.tools/mapr.pnghttps://storage.googleapis.com/wazeopedia-files/7/74/Waze_signature_200k_plain.pnghttps://s.waze.tools/c5s.png
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• T-Mobile | iPhone 14 Pro | iOS Latest | Waze Latest Beta