[Script] CASPER Smart Connect Fill – Copy City & Country from connected segments

Hi everyone,

I’d like to share a small WME script I made for editors:

CASPER Smart Connect Fill

Copy City & Country from connected segments for new / just-connected segments

GreasyFork: https://greasyfork.org/en/scripts/557991-casper-smart-connect-fill
Author: Ari – simplified & adapted by Casper (Iraq editor)
Website: https://casperdevs.com/


What the script does

When you draw new segments or connect “fresh” segments to the network, you often have to manually set the City and Country to match the surrounding roads.

This script:

  • Watches your selected segments in WME.
  • If the segment is new / unsaved / nameless, it looks at the connected segments.
  • It copies only:
    • City
    • Country (and state, if applicable)
  • It does NOT touch:
    • Street name
    • Road type
    • Speed limits
    • Lock level
  • It only fills empty / unset address fields, so it should be safe to use on likely-new segments.

In short: it helps keep City & Country consistent on new segments without overwriting existing data.


UI / Settings

The script adds a tab in the right sidebar:

CASPER Smart Connect Fill

Options:

  • :white_check_mark: Enable on new / just-connected segments
  • :white_check_mark: Copy City
  • :white_check_mark: Copy State + Country

There is also a button:

  • Reset processed cache – clears the internal list of already processed segments.

The script is localized using the WME SDK i18n file, but the tab title is always shown as “CASPER Smart Connect Fill”.


How to install

  1. Install a userscript manager (Tampermonkey is recommended) in your browser.
  2. Open the GreasyFork page:
    https://greasyfork.org/en/scripts/557991-casper-smart-connect-fill
  3. Click “Install this script”.
  4. Open Waze Map Editor, reload if needed.
  5. Look for the CASPER Smart Connect Fill tab in the sidebar and enable it.

Test it by:

  • Drawing a new segment, connecting it to an existing road with proper City & Country.
  • Selecting the new segment: City & Country should be filled automatically, while the street name stays empty.

Credits & feedback

Original logic based on “WME Smart Connect Fill” by Ari.
This fork is simplified for editors who only want City + Country to be copied.

If you have any feedback, bugs, or requests, feel free to reply here or contact me on Waze (username: casper7-21) or via my website:
https://casperdevs.com/

7 Likes

Looks like a promising new script! I can’t wait to try it out.

I’ve moved your post over to the Map Editors Community > Addons, Extensions, And Scripts category, which is the repository for script documentation & feedback.

3 Likes

Thank you

3 Likes

I installed and tested the script, and it’s working as described. Congratulations on your contribution.

3 Likes

Thank you :heart:

2 Likes