[Script] WME Validator v2020.11.1 (PLACES BETA)

Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Moderators: Unholy, bextein, Glodenox, JustinS83

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Re: [Script] WME Validator 1.1.1 / 30.08.2014

Postby sketch » Wed Sep 03, 2014 7:48 pm

berestovskyy wrote:3. To use a backslash inside a string you need to escape it, i.e. to match an alphanumeric character use "\\w" and to match a dot use "\\."

Why do you need two backslashes? I have always used a single backslash to escape (like \. to match a period and \d to match a digit and it's worked. But I notice that Waze also uses the \\ double backslash in their TTS regex.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6545
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2213 times
Been thanked: 2689 times

Re: [Script] WME Validator 1.1.1 / 30.08.2014

Postby sketch » Thu Sep 04, 2014 5:26 am

berestovskyy wrote:
sketch wrote:Why do you need two backslashes?

You don't if you put your regexp into an edit field, i.e. when you use Validator interface for the custom checks you should use just \w, \d and \.

But you do need to double each backslash when you put the regexp into a JavaScript string, i.e.
Code: Select all
"regexp": "/this is a JS string, so we use \\w and \\. here/",

In JS, Java, C, C++ and many other programming languages we use a backslash as an escape character. Have a look at the Using special characters in strings at MDN.

Ah, I see. So I have to escape once for JavaScript and then escape again for regex. Thanks!
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6545
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2213 times
Been thanked: 2689 times

Re: [Script] WME Validator 1.1.1 / 30.08.2014

Postby sketch » Fri Sep 05, 2014 10:08 pm

It is a nice idea. But let's recall that Validator currently only checks segments, and I don't think there are any plans to expand past that at this time.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6545
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2213 times
Been thanked: 2689 times

Re: [Script] WME Validator 1.1.1 / 30.08.2014

Postby sketch » Sat Sep 20, 2014 5:17 pm

Agreed, a "service road" check would be nice. According to staff, the entire type is going to be removed, but then again they've been saying that for two and a half years...
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6545
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2213 times
Been thanked: 2689 times

Re: [Script] WME Validator 1.1.2 / 01.10.2014

Postby sketch » Wed Oct 01, 2014 7:22 am

Nomenclator1677 wrote:Here you go. But only when you select the button and push it up, then it appears.

You have only this window placed on top of.

You can't close it! you can reduce or enhance it and then it is completely unreadable! :mrgreen:

And you can't access to road names!

That is a Toolbox window, not a Validator window.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6545
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2213 times
Been thanked: 2689 times

Re: [Script] WME Validator 1.1.2 / 01.10.2014

Postby sketch » Wed Oct 01, 2014 7:28 am

No, that button only deactivates Toolbox highlights, like for elevation, lock level, and soft turns. It does not disable any of Toolbox's other features. What you're seeing is a corrupted version of the Toolbox segment list.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6545
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2213 times
Been thanked: 2689 times

Re: [Script] WME Validator 1.1.3 / 07.10.2014

Postby sketch » Fri Oct 17, 2014 7:43 pm

voludu2 wrote:I am seeing inconsistencies with custom template/regexp highlighting, This makes it somewhat less useful than it could be for identifying "state smudging" [. . .]

I don't think this is a problem with Validator, but rather a problem with WME not loading all segment details fully. I notice this most prevalently after saving. If you click on one of these not-highlighted segments, does the highlight show up? Clicking on the segment forces WME to look at the segment info, because it has to display it.

Bookmarklets that operate on everything on the screen will also sometimes make WME load all that info as well. Sometimes, if I run a geometry simplifier bookmarklet, the highlights will then show up.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6545
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2213 times
Been thanked: 2689 times

Re: [Script] WME Validator 1.1.3 / 07.10.2014

Postby sketch » Sun Oct 19, 2014 2:57 pm

berestovskyy wrote:1. Validator skips all checks for locked segments, which were updated after the 2014-05-01. There is a message in the segment's properties for that. We mark "exceptions" this way.

By "locked", do you mean any lock at all, or just locks past a certain level? Because if it's any locks, it can be a problem where a segment is locked at level 2, and an inexperienced level 2 editor makes changes after May 2014, but doesn't clear the problem.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6545
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2213 times
Been thanked: 2689 times

[Script] WME Validator 1.1.3 / 07.10.2014

Postby sketch » Sun Oct 19, 2014 4:31 pm

Ok great! So for me it will show all highlights, even if edited yesterday. Just wanted to make sure nothing changed. I like that lower level users can see older locked errors so they can submit an unlock or update request.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6545
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2213 times
Been thanked: 2689 times

Re: [Script] WME Validator 1.1.4 / 07.11.2014

Postby sketch » Tue Nov 11, 2014 8:23 pm

Hi, none of my highlights are working, I think since the recent maintenance update. I've tried with all other scripts disabled. The Validator layer is enabled, and "Highlight issues on the map" is enabled. Thanks.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • beta leader • tier one • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
[ img ] [ img ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6545
Joined: Sat Aug 08, 2009 6:13 pm
Location: Nouvelle-Orléans, Louisiane, États-Unis
Has thanked: 2213 times
Been thanked: 2689 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: jm6087, Mapman44, Mythdraug