[Script] WME-LaneTools

With permission from SkiDooGuy, this script is now available from WazeDev. The GreasyFork link below has been updated. (jm6087)

LaneTools is a script that provides both visual map and interface enhancements and tools.
WazeDev GreasyFork Link

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}

  • Nodes with lanes with turns through them
  • Nodes with TIOs (turn instruction overrides)

  • Solid highlight per segment half if there are missing lane turn associations with that direction


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)


As always, please let me know if there’s any issues.

8 Likes

Awesome! Thanks for this, it will definitely be helpful to map/test!

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…

Thanks Bruce! Was beginning to lose track of where I had been :smiley:

This is great, thanks! The orange is kind of hard to read, but the dashed yellow line stands out.

Good contribution. Identifying the segments with edited lanes and their characteristic saves valuable time that helps focus the test effort on more important aspects.

Tks… :smiley:

Thanks Bruce

Updated to 2019.09.25.02

Changelog notes in original post.

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…

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

Thanks @SkiDooGuy (Bruce).

Very helpful. Great contribution.

Updated to v2019.10.01.05

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
1 Like

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=usa&lon=-92.19243&lat=30.78112&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.

Ah, I see. Now that I’ve tried it, I see the big red highlight, which is not the same as the li’l red tick marks. My bad.

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

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
1 Like
2019.10.02.02:
- Added checkbox to enable/disable Lanes UI auto-expand
1 Like

Good, good, yees.