[Script] WME Short Segments Finder & Fixer

WME Short Segments Finder & Fixer

I created this userscript to automatically scan your current Waze Map Editor (WME) viewport and find road segments that are shorter than a specified length (e.g., 10 meters). It allows you to safely expand all these short segments with a single click, while it automatically protects adjacent segments from shrinking below limits.

Main Features:

  • Auto-Search: Automatically scans the viewport when moving or zooming the map.
  • Safe Node Movement: Moves geometry nodes intelligently without breaking connecting roads.
  • Smart Filters: Easily exclude roundabouts or segments locked above your editor rank.
  • Bilingual Support: Full English (EN) and Persian (FA) interface.

Note: I developed and optimized this script’s logic and viewport handling with the assistance of Gemini AI.

You can install the script from the link below:
Greasy Fork Link

Great idea. Could you add an “On/Off” button similar to the Display Speeds script ?

Thanks for the suggestion! I’ve just pushed an update to include that feature. Here’s what’s changed:

  • Main On/Off Toggle: Added a master switch to enable or disable the script instantly.

  • WME Layer Sync: The button is now fully integrated with the WME Layer Switcher menu, providing two-way synchronization between the script’s UI and the editor’s layer settings.

  • Auto-Cleanup: When disabled, the script now automatically clears map markers and cleans up the UI to keep your workspace tidy.

  • Persistent Language Settings: The script now respects your manual language preference, ensuring it stays set to your chosen language regardless of the editor’s display language.

Hope this makes your workflow smoother!

Thanks for this script. When you do the next update, for us in the US that still use feet, could we toggle feet and meters please? Thank you.

Sean

I have updated the script to include a unit toggle (Metres/Feet). You can now easily switch between units in the sidebar, and the tool will automatically adjust the length calculations and slider ranges accordingly.

Version updated from 1.1.0 to 1.1.1

Bug fix: resolved the issue of an invisible halo around the marker preventing accurate mouse clicks on the map

Technical details: applied background transparent and pointer events none properties to the marker element and its parent to allow interference free clickability

Special thanks to @XROZX67 for reporting this issue and providing the solution and code

Hi.
Could you exclude non-drivable segments?

Hello @RafaCintron,

Thanks for the suggestion. I’ve updated the script to version 1.2.0 based on your idea. You can now easily “exclude” specific road types from the search by simply checking their boxes. It definitely makes the workflow much faster. Thanks for the input!

Version 1.2.1

  • Fixed: Resolved a critical issue preventing the script from loading.

  • Updated: Migrated map extent, geometry handling, and segment detection to the new WME SDK.

  • Fixed: Corrected map centering and segment selection behaviors.

:warning: Known Issue: The script may currently fail to detect certain short segments. This is a known limitation with the new data structure, and a permanent solution is being actively investigated.

The settings are lost each time I refresh

I’ve updated the script and fixed the settings issue. Please update to the latest version. If you spot any other problems, I’d be happy to know and will do my best to fix them :innocent: