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 Reply
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.

[Script] WME UR-MP Tracking

Post by
Hi all,

Download on Greasyfork
For FireFox: install it in GreaseMonkey
For Chrome: install it in TamperMonkey
DO NOT INSTALL AS EXTENSION

I wrote a long user manual below.
Even if some of you already know and use this script, I recommend to all to read carefully chapter 9 "Warning". Please, this is important.

Compared to previous version, the main adds are custom areas to scan, stats, and some filters. And for CM, the ability to scan their country and subsets if available.

Many thanks to Havanaday for drawing all US states borders, and all beta testers: Exolium, Myriades, Seb-d59, Sebiseba, Mboris34, Billoute720, Joker40, Fifibdx, Yopinet, OrbitC, and others.

Enjoy.

User Manual
TOC:
  • Introduction
  • GUI
  • The UR tab
  • The MP tab
  • The Stats tab
  • The Area tab
  • Scans
  • Background processes
  • WARNINGS (the most important chapter)
  • additional info
  • Conclusion
  • Introduction
    the main idea is to display a list of all UR and all MP you can access regarding your editing rights.
  • GUI
    The script adds a new tab in the left panel.
    This tab contains:
    1. a header:
      • the name of the script with a link to the forum topic
      • followed by the version number
      • followed by a check box to enable or disable the script
    2. a quick option
      • check box distance (explanations below)
      • check box auto scan (explanations below)
    3. a scan menu
      this menu contains a link "editable area", and optionally, others areas to scan
      Editable area is your drives and your managed area(s) if available. It corresponds to the layer "editable area" in WME.
      See chapter Scan for more details
    4. 4 tabs
      • UR: the list of URs
      • MP: the list of MPs
      • stats: statistics computed from the two lists
      • areas: manage areas to scan
  • The UR tab
    1. 2 links:
      • mark all UR as read (explanations below)
      • clear list: remove all URs: if you clear the list, and scan again to rebuild the list, you will loose the status of blacklisted and visited (see below)
    2. Filter menu
      Each entry of this menu will hide some URs. A tool tip text explains each filter.
      See chapter WARNINGS to setup the filter "Limit to". It is important!
    3. UR list
      is a table where each row is a UR
      Background color of the row could be:
      • White: UR visited
      • Grey: UR you follow
      • Blue: UR not visited
      • green: Last visited UR
      Columns are:
      • blacklist:
        click the icon to blacklist the UR (or whitelist a blacklisted UR)
      • Ages:
        the color shows the age of the UR.
        • From yellow to orange to red to purple = youngest to oldest
        • green: closed UR
        • black: blacklisted UR
        number: age in days of the last comment. If no comment, displays a "-"
        Sortable in the header of the table:
        • top icon = sort on UR age (colors). Click again to reverse
        • bottom icon = sort on last comment age (number). Click again to reverse
        tooltiptext shows the age of the UR and more informations for closed URs
      • Type:
        tooltiptext shows the full text
        Sortable in the header of the table. Click again to reverse
      • Description:
        text posted by the reporter
        "N/A" if not available
        Long text scrolls
        tooltiptext shows the full text
        Not sortable
      • Comments:
        Number of comments
        tooltiptext shows all comments with the limitation of your browser
        Sortable in the header of the table. Click again to reverse
      • Distance:
        length from your actual position on the map to the UR
        Sortable in the header of the table. Click again to reverse
        This length computation can be disabled in the quick option to let you deal with URs around you
      • target:
        link to jump to the UR
        Opens the UR
        The UR will be marked as visited
        Not sortable
  • The MP tab
    1. 2 links:
      • mark all MP as read (explanations below)
      • clear list: remove all MPs: if you clear the list, and scan again to rebuild the list, you will loose the status of blacklisted and visited (see below)
    2. Filter menu
      Each entry of this menu will hide some MPs. A tool tip text explains each filter.
      See chapter WARNINGS to setup the filter "Limit to". It is important!
    3. MP list
      is a table where each row is a MP
      Background color of the row could be:
      • White: MP visited
      • Blue: MP not visited
      • green: Last visited MP
      Columns are:
      • blacklist:
        click the icon to blacklist the MP (or whitelist a blacklisted MP)
      • Priority:
        the color shows the priority of the MP.
        • From yellow to orange to red to purple = less to most important
        • green: closed MP
        • black: blacklisted MP
        number: Priority value
        Sortable in the header of the table:
        tooltiptext: only on closed MP
      • Type: P (problem) or TP (turn problem)
        Sortable in the header of the table. Problems will be sorted on description. Click again to reverse
      • Description:
        Detail for "Problem". Turn problem will always displays "turn problem" since there is no subcategory
        Long text scrolls
        tooltiptext shows the full text
        Not sortable (sortable in previous column)
      • Distance:
        length from your actual position on the map to the MP
        Sortable in the header of the table. Click again to reverse
        This length computation can be disabled in the quick option to let you deal with MPs around you
      • target:
        link to jump to the MP
        Opens the MP
        The MP will be marked as visited
        Not sortable
  • The Stats tab
    shows statistics on all URs and MPs in your list
    Shows same statistics for each area (editable areas and others if available)
    Statistics are computed only when you click on the tab. It is recommended to change tab and go back to stats tab to be sure to get updated stats
    See chapter WARNINGS for more details
  • The Area tab
    Let you manage areas.
    It could be
    • a "country" area (or subset of a country) taken from a list (CM ONLY)
    • a "custom" area (a bounding rectangle picked from the map)
    Each area will be available for scan in the scan menu
    You can visualize areas in google earth with the export icon. CM only: see chapter 10 for more details.
  • Scans
    1. Auto scan.
      when enabled, URs and MPs will be added or updated when you scroll the map.
      See chapter WARNINGS about auto scan regarding closed URs and MPs
      This will not update statistics until you click on the stats tab
    2. Scan menu
      click on an area to full scan the area.
      This could take a while
      PLEASE, READ THE CHAPTER WARNINGS, IT IS VERY IMPORTANT!
  • Background processes
    if the script is enabled (top check box), it will:
    • update UR and MP if you close it
    • update UR if you follow or unfollow
    • update UR if you post a comment
    • URs and MPs are deleted from the list when they are closed and closed for more than 60 days (in order to keep good stats)
  • WARNINGS (the most important chapter)
    1. scan (not auto scan)
      The scan process will query the waze database. PLEASE, DO NOT ABUSE or waze staff could forbid this feature!
      A good way to use it is to scan once a day your editable area, or your country if you are a CM, and then, deal with URs and MPs.
      You can add several areas included in a bigger one, to have cool stats, and never scan them!
      If you have a country and subsets of this country, and if you scan the country, it is USELESS to scan subsets!
    2. Stats
      your editable area is unique: you are the only one who have those statistics. So, this is not representative of all your country, or all the world! This is not the case for CM.
      Best pipelette (chatterbox in google translate) is the user that posted most comments. This information is dangerous because it can tells several things:
      • the best pipelette is a bad editor that never understand problems
      • the best pipelette is a good editor that have a lot of time to deal with URs
      • if you are not a CM, the best pipelette is computed from your editable area which is unique, and this will be probably you!
    3. Since URs and MPs are deleted from the list when they are closed and closed for more than 60 days (in order to keep good stats), an UR or a MP could be in your list but no more available in WME.
    4. Auto scan will not add or update closed UR or MP if the layer is not active. You can use WME URO+ to hide closed UR and MP, and keep the layer active.
    5. If you are not CM, or if you scan an area where you are not allowed to edit, you will get only MPs (not URs). So you will be able to target them, but not modify them. Regarding stats, it will be a bad idea to compare the UR count to MP count, or closed ratio, etc.
    6. Filter "limit to": this filter limits the number of rows in the table. Big table slows your browser. It is recommended to enable this filter and set the limit to 100 or less.
    7. This document is written now, and there could be changes in the future. Check the forum!
  • Additional info
    Borders are taken from a free database, and are neither perfect, nor adapted to Waze.
    US states borders have been redrawn by havanaday. Many thanks to him!
    With the google earth icon, you can visualize borders. If you think they need to be redrawn or if you want to create a subset for your country (like states for US, or regions for France), send me a PM, and I will tell you how to.
  • Conclusion
    Did you read chapter "WARNINGS"? :(
    Sorry for this long user manual...
    humm... ENJOY!
Last edited by dummyd2 on Thu May 17, 2018 3:39 pm, edited 2 times in total.

Post by AlanOfTheBerg
I'd love to see this tool track, for visited URs, the last date/time I visited, and be able to sort the list on that so I can go back and visit URs that I've recently updated.
AlanOfTheBerg
EmeritusChamps
EmeritusChamps
Posts: 23624
Has thanked: 610 times
Been thanked: 3684 times
Wiki Resources: Map Editing Manual | alanoftheberg@gmail.com
Oregon-based US Country Manager | iPhone6 - VZ

Post by AlanOfTheBerg
HavanaDay wrote:Check Hide without comment for me
Make sure Hide visited isn't selected

and the sort by the last reply.
I will give this a try!
AlanOfTheBerg
EmeritusChamps
EmeritusChamps
Posts: 23624
Has thanked: 610 times
Been thanked: 3684 times
Wiki Resources: Map Editing Manual | alanoftheberg@gmail.com
Oregon-based US Country Manager | iPhone6 - VZ

Post by AlanOfTheBerg
Request: turn off the refresh of URs. The issue I have is cosmetic, but it can be confusing. I do not use auto-save because I often want to add another note before sending. If I use a "Solved" response and hit send. The UR is marked as Solved, but the refresh changes the visual display back to non-resolved because the UR hasn't been saved yet.

UPDATE: This also causes any segments you have drawn but not saved, to disappear from the map, though the save counter still shows the edit. You have to save and then continue on the roads when they reappear after the refresh.

The reload of features should not be allowed when there are unsaved changes. The Waze code should actually force that. But since it doesn't...
AlanOfTheBerg
EmeritusChamps
EmeritusChamps
Posts: 23624
Has thanked: 610 times
Been thanked: 3684 times
Wiki Resources: Map Editing Manual | alanoftheberg@gmail.com
Oregon-based US Country Manager | iPhone6 - VZ

Post by AlanOfTheBerg
HavanaDay wrote:Check Hide without comment for me
Make sure Hide visited isn't selected
Thanks again for this. It works perfectly.
AlanOfTheBerg
EmeritusChamps
EmeritusChamps
Posts: 23624
Has thanked: 610 times
Been thanked: 3684 times
Wiki Resources: Map Editing Manual | alanoftheberg@gmail.com
Oregon-based US Country Manager | iPhone6 - VZ

Post by AlanOfTheBerg
Problem I am seeing: when another editor adds a comment or closes a UR in my area while I am online, when I click on the URMP target icon to take me to the UR, it doesn't update the comment count, or if closed now, that the UR is closed. If I close the UR window and then click on the Closed UR manually, it seems to update that, but if I manually click on a UR with new comments, the comment count does not increase, nor does the "days since last comment."

It would be nice if these both updated even when clicking the URMP target button.
AlanOfTheBerg
EmeritusChamps
EmeritusChamps
Posts: 23624
Has thanked: 610 times
Been thanked: 3684 times
Wiki Resources: Map Editing Manual | alanoftheberg@gmail.com
Oregon-based US Country Manager | iPhone6 - VZ

Post by ajcadoo
Has the new WME update broken this script? I am not seeing it any longer, even after following the directions listed in the post before this.
ajcadoo
Map Editor - level 3
Map Editor - level 3
Posts: 71
Has thanked: 43 times
Been thanked: 11 times

Post by ajcadoo
Are there plans to add additional MP filters?

For example:

Hide all but "Missing Parking Lot Place"
Hide all but "Parking Lot set as a Point"
ajcadoo
Map Editor - level 3
Map Editor - level 3
Posts: 71
Has thanked: 43 times
Been thanked: 11 times

Post by aamazotr
Hi.

Anyone else having problems with the script? It doesn't work in production or beta, Firefox browser.

When scanning the area does not bring results.
aamazotr
PartnerCoordinator
PartnerCoordinator
Posts: 413
Has thanked: 742 times
Been thanked: 329 times
Attachments

Post by ABelter
The latest WME update has broken the function to open the PUR when clicking on it from the table. It appears that only line 5342 needs updated from:

Code: Select all

    WMEURMPT.wazeMap.getLayerByUniqueName("landmarks").setVisibility(true);
to

Code: Select all

    WMEURMPT.wazeMap.getLayerByUniqueName("venues").setVisibility(true);
ABelter
Posts: 49
Has thanked: 23 times
Been thanked: 18 times
Andrew aka ABelter
State Manager / North Carolina
Traffic Event Marshal / South Atlantic Region (NC, SC, TN, KY)
andrew@wazenc.us