A Waze Map Editor (WME) userscript that reverses the A/B direction of a segment. The geometry is flipped and all direction-dependent attributes are swapped, so the road itself stays exactly the same.
- Install a userscript manager such as Tampermonkey.
- Install the script from Greasy Fork.
- Open WME. The script loads automatically and requires WazeWrap.
Select a single segment and click Flip A/B in the segment panel (below the level selection), or press Alt+R. The whole reverse is one undo step.
If the segment can't be reversed, the button is disabled and the reason is shown next to it. Pressing the shortcut shows the reason as a notification.
| Attribute | After reverse |
|---|---|
| Direction (one-way) | A→B becomes B→A and vice versa |
| Speed limits | Forward and reverse values swapped |
| Lanes and lane guidance | Moved to the matching direction |
| Allowed turns | Restored, including turn restrictions |
| Turn guidance | TTS, road shields, exit signs, towards and visual instructions |
| Traffic lights / speed cameras | Same position, flipped direction, including traffic light guidance |
| House numbers | Navigation stop points stay on the same spot |
If anything could not be restored, a warning is shown so you can check the turns or undo.
A segment can't be reversed if it
- is part of a big junction,
- has closures, or is connected to a segment with closures,
- or one of the segments connected to it can't be fully edited by you (e.g. lock level).
| Default Key | Action | WME Shortcut Name |
|---|---|---|
| Alt+R | Flip A/B of the selected segment | Flip A/B of the selected segment |
The shortcut can be changed in the WME keyboard shortcuts dialog (WME Reverse Segment). Changes are saved in localStorage under the key wme-reverse-segment.
Linting uses the shared WazeDev ESLint config, the same as the GitHub action on pull requests and pushes to main. Run it locally with ./lint.sh (requires Node.js; ./lint.sh --fix applies automatic fixes).