# \[Script\] WME-LaneTools

**URL:** <https://www.waze.com/discuss/t/script-wme-lanetools/53136>\
**Category:** Addons, Extensions, And Scripts\
**Created:** [September 25, 2019, 5:45pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136 "2019-09-25T17:45:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SkiDooGuy](https://www.waze.com/discuss/user_avatar/www.waze.com/skidooguy/32/85771_2.png) [@SkiDooGuy](https://www.waze.com/discuss/u/SkiDooGuy)\
**Post date:** [September 25, 2019, 5:45pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/1 "2019-09-25T17:45:38Z")

</div>

**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](https://greasyfork.org/en/scripts/537219-wme-lanetools)

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](https://web-assets.waze.com/discuss/prod/original/3X/7/d/7d2ee06308fbc7281f1a3ee2b2e08f1df18dd9b6.png)

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

 ![2019-10-10_20h12_55.png](https://web-assets.waze.com/discuss/prod/original/3X/6/1/61335007f042862e838bb02bd4faf0ea7c5f5bd0.png)

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

 ![2019-10-10_20h13_09.png](https://web-assets.waze.com/discuss/prod/original/3X/7/2/72c2df3d4cd13fed5ae38b918389c288e0022ac1.png)  
 ![2019-10-10_20h13_19.png](https://web-assets.waze.com/discuss/prod/original/3X/4/6/46102799ee7950341d723320566166448f5e18c5.png)

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](https://web-assets.waze.com/discuss/prod/original/3X/0/a/0ab99ba627cabbf9ee1b87fddf88a3b92555e247.png)  
 ![2019-10-10_20h13_31.png](https://web-assets.waze.com/discuss/prod/original/3X/2/8/28fa00a3ec72e1829b35a06f378615c4c061cd09.png)

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

---

<div class="post-metadata">

**Author:** ![vince1612](https://www.waze.com/discuss/user_avatar/www.waze.com/vince1612/32/142_2.png) [@vince1612](https://www.waze.com/discuss/u/vince1612)\
**Post date:** [September 25, 2019, 5:48pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/2 "2019-09-25T17:48:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SkiDooGuy](https://www.waze.com/discuss/user_avatar/www.waze.com/skidooguy/32/85771_2.png) [@SkiDooGuy](https://www.waze.com/discuss/u/SkiDooGuy)\
**Post date:** [September 25, 2019, 5:51pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/3 "2019-09-25T17:51:30Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![TheChrisK](https://www.waze.com/discuss/letter_avatar_proxy/v4/letter/t/FF5252/32.png) [@TheChrisK](https://www.waze.com/discuss/u/TheChrisK)\
**Post date:** [September 25, 2019, 6:02pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/4 "2019-09-25T18:02:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RussPA](https://www.waze.com/discuss/user_avatar/www.waze.com/russpa/32/5122_2.png) [@RussPA](https://www.waze.com/discuss/u/RussPA)\
**Post date:** [September 25, 2019, 6:16pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/5 "2019-09-25T18:16:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kahlcolimon](https://www.waze.com/discuss/user_avatar/www.waze.com/kahlcolimon/32/208_2.png) [@kahlcolimon](https://www.waze.com/discuss/u/kahlcolimon)\
**Post date:** [September 25, 2019, 6:16pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/6 "2019-09-25T18:16:58Z")

</div>

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… 😃

---

<div class="post-metadata">

**Author:** ![asterix06](https://www.waze.com/discuss/user_avatar/www.waze.com/asterix06/32/78821_2.png) [@asterix06](https://www.waze.com/discuss/u/asterix06)\
**Post date:** [September 25, 2019, 7:03pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/7 "2019-09-25T19:03:20Z")

</div>

Thanks Bruce

---

<div class="post-metadata">

**Author:** ![SkiDooGuy](https://www.waze.com/discuss/user_avatar/www.waze.com/skidooguy/32/85771_2.png) [@SkiDooGuy](https://www.waze.com/discuss/u/SkiDooGuy)\
**Post date:** [September 26, 2019, 3:19am UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/8 "2019-09-26T03:19:52Z")

</div>

Updated to 2019.09.25.02

Changelog notes in original post.

---

<div class="post-metadata">

**Author:** ![dbcm](https://www.waze.com/discuss/user_avatar/www.waze.com/dbcm/32/10644_2.png) [@dbcm](https://www.waze.com/discuss/u/dbcm)\
**Post date:** [September 26, 2019, 7:21am UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/9 "2019-09-26T07:21:43Z")

</div>

> [@](#):
>
> W.selectionManager.getSelectedFeatures()[0].model.getFwdLanes().laneCount  
> W.selectionManager.getSelectedFeatures()[0].model.getRevLanes().laneCount

i found a easier to check for lanes count

---

<div class="post-metadata">

**Author:** ![SkiDooGuy](https://www.waze.com/discuss/user_avatar/www.waze.com/skidooguy/32/85771_2.png) [@SkiDooGuy](https://www.waze.com/discuss/u/SkiDooGuy)\
**Post date:** [September 26, 2019, 2:58pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/10 "2019-09-26T14:58:55Z")

</div>

> [@dbcm](#):
>
> > [@](#):
> >
> > 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…

---

<div class="post-metadata">

**Author:** ![bedo2991](https://www.waze.com/discuss/user_avatar/www.waze.com/bedo2991/32/341_2.png) [@bedo2991](https://www.waze.com/discuss/u/bedo2991)\
**Post date:** [September 26, 2019, 4:08pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/11 "2019-09-26T16:08:17Z")

</div>

(Off-topic) Just as Info, for the (probably few) ones who use [Street Vector Layer](https://www.waze.com/forum/viewtopic.php?f=819&t=149535), you can see that segments have lanes from the dashed dark gray line on the corresponding side of the segment.

---

<div class="post-metadata">

**Author:** ![SkiDooGuy](https://www.waze.com/discuss/user_avatar/www.waze.com/skidooguy/32/85771_2.png) [@SkiDooGuy](https://www.waze.com/discuss/u/SkiDooGuy)\
**Post date:** [September 26, 2019, 4:22pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/12 "2019-09-26T16:22:01Z")

</div>

> [@bedo2991](#):
>
> (Off-topic) Just as Info, for the (probably few) ones who use [Street Vector Layer](https://www.waze.com/forum/viewtopic.php?f=819&t=149535), 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.

---

<div class="post-metadata">

**Author:** ![MauricioCGB](https://www.waze.com/discuss/letter_avatar_proxy/v4/letter/m/90959C/32.png) [@MauricioCGB](https://www.waze.com/discuss/u/MauricioCGB)\
**Post date:** [September 29, 2019, 12:34am UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/13 "2019-09-29T00:34:44Z")

</div>

Thanks @SkiDooGuy (Bruce).

Very helpful. Great contribution.

---

<div class="post-metadata">

**Author:** ![SkiDooGuy](https://www.waze.com/discuss/user_avatar/www.waze.com/skidooguy/32/85771_2.png) [@SkiDooGuy](https://www.waze.com/discuss/u/SkiDooGuy)\
**Post date:** [October 2, 2019, 2:23am UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/14 "2019-10-02T02:23:25Z")

</div>

Updated to v2019.10.01.05

```auto
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
```

---

<div class="post-metadata">

**Author:** ![sketch](https://www.waze.com/discuss/user_avatar/www.waze.com/sketch/32/336_2.png) [@sketch](https://www.waze.com/discuss/u/sketch)\
**Post date:** [October 2, 2019, 4:06pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/15 "2019-10-02T16:06:42Z")

</div>

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](https://beta.waze.com/en-US/editor/?env=usa&lon=-92.19243&lat=30.78112&zoom=4)

---

<div class="post-metadata">

**Author:** ![SkiDooGuy](https://www.waze.com/discuss/user_avatar/www.waze.com/skidooguy/32/85771_2.png) [@SkiDooGuy](https://www.waze.com/discuss/u/SkiDooGuy)\
**Post date:** [October 2, 2019, 4:16pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/16 "2019-10-02T16:16:17Z")

</div>

> [@sketch](#):
>
> 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](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.

---

<div class="post-metadata">

**Author:** ![sketch](https://www.waze.com/discuss/user_avatar/www.waze.com/sketch/32/336_2.png) [@sketch](https://www.waze.com/discuss/u/sketch)\
**Post date:** [October 2, 2019, 4:31pm UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/17 "2019-10-02T16:31:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![SkiDooGuy](https://www.waze.com/discuss/user_avatar/www.waze.com/skidooguy/32/85771_2.png) [@SkiDooGuy](https://www.waze.com/discuss/u/SkiDooGuy)\
**Post date:** [October 3, 2019, 2:13am UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/18 "2019-10-03T02:13:06Z")

</div>

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

```auto
2019.10.02.01:
- Buttons to delete all lanes in either the fwd or rev direction in the lanes tab (R5&lt; or CM)
- Auto focus the first lane # input in the lanes tab
```

---

<div class="post-metadata">

**Author:** ![SkiDooGuy](https://www.waze.com/discuss/user_avatar/www.waze.com/skidooguy/32/85771_2.png) [@SkiDooGuy](https://www.waze.com/discuss/u/SkiDooGuy)\
**Post date:** [October 3, 2019, 2:55am UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/19 "2019-10-03T02:55:47Z")

</div>

```auto
2019.10.02.02:
- Added checkbox to enable/disable Lanes UI auto-expand
```

---

<div class="post-metadata">

**Author:** ![Olestas](https://www.waze.com/discuss/user_avatar/www.waze.com/olestas/32/25401_2.png) [@Olestas](https://www.waze.com/discuss/u/Olestas)\
**Post date:** [October 3, 2019, 8:27am UTC](https://www.waze.com/discuss/t/script-wme-lanetools/53136/20 "2019-10-03T08:27:49Z")

</div>

Good, good, yees.

[Next page](https://www.waze.com/discuss/t/script-wme-lanetools/53136.md?page=2)
