[Script] WME Sequential Street Names

Hi everyone,

I am excited to share a new project I’ve been working on: WME Names.

Why was this built?
As map editors, we often face the repetitive task of naming sequential streets (1st, 2nd, 3rd, etc.) in various formats. I wanted to create a tool that not only speeds up this process but also ensures 100% accuracy, adheres to community standards, and provides a seamless, modern user experience directly within the Waze Map Editor.

What does it do?
WME Names is a bilingual (Persian/English) script that automates the generation of sequential street names. Key features include:

  • Support up to 200: Easily generate sequential names from 1 up to 200.
  • Minimalist UI: A clean, sidebar-integrated interface that saves your settings (language, road types, formats) automatically across sessions.
  • Versatility: Supports various road types (Blvd, Fwy, Hwy) and geographical directions (N, S, E, W).

Origins & Credits:
The core idea for this tool traces back to 2019, when a valued member of our community named Ali shared a comprehensive spreadsheet containing the standard naming conventions for Iranian streets. This script is built upon his original concept and foundational work. While I haven’t been able to identify his current Waze username yet, I want to express my sincere gratitude for his initial contribution, which made this automation possible.

Technical Note:
To ensure high performance, modular architecture, and a modern UI, the coding logic and structural design of this script were developed with the assistance of Gemini AI, following the latest WME SDK standards.

You can find the script on Greasy Fork. I hope this tool makes your editing sessions faster and more enjoyable. Feedback is always welcome!

Happy editing!

WME Names — Version 2.2.0 Changelog

Welcome to version 2.2.0! This update introduces a new tool to significantly improve map quality: the Name Validator.

You can now scan, detect, and fix street naming mistakes with just a single click.

Brand New Feature: Naming Validator Section

I have added a completely new tab called “Validator” next to the generator. This tool automatically scans all visible segments on your screen and checks their street names against official naming standards.

How it works:

  1. Switch to the Validator tab.

  2. Check or uncheck the rules you want the script to enforce.

  3. Click Scan Visible Segments.

  4. If any errors are found, simply click on the error card in the list, and the editor will instantly zoom to and select that exact segment on your map!

What exactly does the Validator check?

* English Capitalization: Automatically flags Latin street names that do not start with a capital letter.

* English Ordinals Suffixes: Catches typos in ordinal numbers, such as flagging 1th typos and telling you to change them to the correct format like 1st.

* Smart Language Filtering: If you switch the script language to English (En), the interface automatically cleans itself up! It will instantly hide all Persian-related rules, showing only the relevant English criteria so you can work completely distraction-free.

When used in Persian Mode, it also validates:

* Bilingual Spacing & Separators: Ensures standard spacing around hyphens ( - ) and commas (, ) between Persian and English names.

* No Persian Digits: Flags forbidden Persian digits (۱, ۲, ۳…) in street names.

* Persian Number Grammar: Catches the use of cardinal numbers instead of ordinals, such as flagging error patterns and recommending the proper ordinal format.

* Strict Transliteration Consistency: Enforces standardized vowel and character matching based on strict phonetic guidelines, such as gh for غ, q for ق, j for ژ, ei for عی, and ensuring only u is used instead of oo or ou for the long vowel sound.

Other Improvements & Fixes

* UI Refresh: Cleaned up the layout with a responsive box-sizing structure to ensure UI elements fit perfectly inside the WME sidebar tab.

* State Saving: The script now remembers your chosen active tab (Generator or Validator) and your custom checkbox configurations, even if you refresh your browser window.