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-LaneTools

Post by SkiDooGuy
LaneTools is a script that provides both visual map and interface enhancements and tools.

To install, click on the above link which will take you to GitHub. Click on "Raw" to install the script in Tampermonkey.
2020-12-07_12h55_10.png
(28 KiB) Downloaded 938 times
Map enhancements
  • Dashed highlights on each half of a segment if there are lanes in that direction
    • A->B = Fwd
    • B->A = Rev
  • Displays the number of lanes in each direction in the center of the segment in the format {#FWD} / {#REV}
2019-10-10_20h13_03.png
(6.23 KiB) Downloaded 3178 times
  • Nodes with lanes with turns through them
  • Nodes with TIOs (turn instruction overrides)
2019-10-10_20h12_55.png
(2.97 KiB) Downloaded 3184 times
  • Solid highlight per segment half if there are missing lane turn associations with that direction
2019-10-10_20h13_09.png
(8.42 KiB) Downloaded 3181 times
2019-10-10_20h13_19.png
(4.52 KiB) Downloaded 3176 times

Toggle-able UI enhancements on the Lanes tab when a segment is selected:
  • User customizable colors for all highlight features
  • When a segment is selected, the lanes tab will automatically be opened
  • When the lanes tab is opened, all lane menus are auto expanded to the edit screen
  • The first lane # input element is focused
  • Fwd/Rev direction indication elements have been added to the lane edit sections
  • Click the street name above each set of lane check boxes to toggle all lanes in that row
  • Buttons allowing the deletion of either all forward or reverse lanes (R5+ and CMs)
2019-10-10_20h11_54.png
(21.89 KiB) Downloaded 3165 times
2019-10-10_20h13_31.png
(12.38 KiB) Downloaded 3173 times

As always, please let me know if there's any issues.
SkiDooGuy
Coordinators
Coordinators
Posts: 2541
Answers: 1
Answers: 1
Has thanked: 428 times
Been thanked: 1428 times
Last edited by SkiDooGuy on Mon Dec 07, 2020 5:57 pm, edited 20 times in total.
Assistant Regional Coordinator: Great Lakes Region
Local Champ: Canada, USA
Country Manager: Canada, USA, Palau
Rank 6 editor

Post by SkiDooGuy
Also - as of right now this will not function in WME Prod.

It will load and you can enable/disable it, but the infrastructure for lanes that's in WME Beta is not completely in the Prod version.

I figure that would make sense, but I know someone will say something if I don't...
SkiDooGuy
Coordinators
Coordinators
Posts: 2541
Answers: 1
Has thanked: 428 times
Been thanked: 1428 times
Assistant Regional Coordinator: Great Lakes Region
Local Champ: Canada, USA
Country Manager: Canada, USA, Palau
Rank 6 editor

Post by SkiDooGuy
Updated to 2019.09.25.02

Changelog notes in original post.
SkiDooGuy
Coordinators
Coordinators
Posts: 2541
Answers: 1
Has thanked: 428 times
Been thanked: 1428 times
Assistant Regional Coordinator: Great Lakes Region
Local Champ: Canada, USA
Country Manager: Canada, USA, Palau
Rank 6 editor

Post by SkiDooGuy
dbcm wrote:
W.selectionManager.getSelectedFeatures()[0].model.getFwdLanes().laneCount
W.selectionManager.getSelectedFeatures()[0].model.getRevLanes().laneCount
i found a easier to check for lanes count
That would only check one selected segment and wouldn't work for nodes at all.

LanesInfo checks every segment/node on screen irregardless of whether it's selected or not. Checking only one selected feature at a time seems counter productive to being able to see what's been done already at a glance...
SkiDooGuy
Coordinators
Coordinators
Posts: 2541
Answers: 1
Has thanked: 428 times
Been thanked: 1428 times
Assistant Regional Coordinator: Great Lakes Region
Local Champ: Canada, USA
Country Manager: Canada, USA, Palau
Rank 6 editor

Post by SkiDooGuy
bedo2991 wrote:(Off-topic) Just as Info, for the (probably few) ones who use Street Vector Layer, you can see that segments have lanes from the dashed dark gray line on the corresponding side of the segment.
Thanks Bedo. I didn't even think to apply varying color to half the segment to indicate direction and instead just displayed the # of lanes in each.

I think your script is certainly more beneficial for a quick glance at what has lanes.

I plan on adding the capability to see how many lanes apply to each turn here eventually to LanesInfo, but that'll have to wait a week or so.
SkiDooGuy
Coordinators
Coordinators
Posts: 2541
Answers: 1
Has thanked: 428 times
Been thanked: 1428 times
Assistant Regional Coordinator: Great Lakes Region
Local Champ: Canada, USA
Country Manager: Canada, USA, Palau
Rank 6 editor

Post by SkiDooGuy
Updated to v2019.10.01.05

Code: Select all

2019.10.01.05: 
- Will highlight each segment half based on presence of lanes
- Will highlight each half with red if there are missing lane turn associations
- Lane label now appears in the middle of each segment only
- The 'Edit Lanes' interface will automatically open when the lane tab is selected
- Adjusted some line attributes for better display
SkiDooGuy
Coordinators
Coordinators
Posts: 2541
Answers: 1
Has thanked: 428 times
Been thanked: 1428 times
Assistant Regional Coordinator: Great Lakes Region
Local Champ: Canada, USA
Country Manager: Canada, USA, Palau
Rank 6 editor

Post by SkiDooGuy
sketch wrote:Thanks for the update. The red highlight seems to be erroneous sometimes, compare the 2 lanes-having segments in this PL for example. I'm seeing one red one blue although they're identical. Maybe something to do with A-B vs. B-A direction?

https://beta.waze.com/en-US/editor/?env ... 112&zoom=4

Correct. I have plans later today to write up a better user guide for this script and post it in the original post.

Each half of the segment (whether A->B or B->A) will have a highlight associated with a color. I did this so it's immediately clear that both directions on the segment have lanes associated with them, and although not many use it, the direction of the segment is known. The dashed highlights area associated with the presence of lanes on the segment. The larger solid red highlight indicates that some of the lanes in that direction do not have a turn associated with them.
SkiDooGuy
Coordinators
Coordinators
Posts: 2541
Answers: 1
Has thanked: 428 times
Been thanked: 1428 times
Assistant Regional Coordinator: Great Lakes Region
Local Champ: Canada, USA
Country Manager: Canada, USA, Palau
Rank 6 editor

Post by SkiDooGuy
Updated the user guide in the original post and pushed a new update.

Code: Select all

2019.10.02.01:
- Buttons to delete all lanes in either the fwd or rev direction in the lanes tab (R5< or CM)
- Auto focus the first lane # input in the lanes tab
SkiDooGuy
Coordinators
Coordinators
Posts: 2541
Answers: 1
Has thanked: 428 times
Been thanked: 1428 times
Assistant Regional Coordinator: Great Lakes Region
Local Champ: Canada, USA
Country Manager: Canada, USA, Palau
Rank 6 editor

Post by SkiDooGuy

Code: Select all

2019.10.02.02:
- Added checkbox to enable/disable Lanes UI auto-expand
SkiDooGuy
Coordinators
Coordinators
Posts: 2541
Answers: 1
Has thanked: 428 times
Been thanked: 1428 times
Assistant Regional Coordinator: Great Lakes Region
Local Champ: Canada, USA
Country Manager: Canada, USA, Palau
Rank 6 editor

Post by sketch
YanisKyr wrote: - There are cases where the default Turn Instruction is Turn Left/Right but the default Lane Turn Suggestion is a Sharp Left/Right or Slight Left/Right. Would it be possible to highlight segments or nodes with LG that fall under this conundrum?
I'd prefer that the script not have this. It might create the false impression that this situation is one to be corrected, rather than one to simply be informed of. A 47° turn generating a "slight right" arrow with a "turn right" instruction or a 142° turn generating a "sharp left" turn with a "turn left" instruction is not a problem to be fixed, it is a good native behavior (if those angles are realistic).
sketch
Waze Global Champs
Waze Global Champs
Posts: 6626
Has thanked: 1077 times
Been thanked: 1637 times
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
https://badges.fuelly.com/images/smallsig-us/557693.png