[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.7 / 06.03.2015

Postby sketch » Tue Apr 07, 2015 5:46 pm

ispyisail wrote:I have enough trouble with the easy stuff :(

Could you show us an example?

Not that it makes it any easier to understand ... or very much shorter ;)
Code: Select all
 !/( Unknown Name| A(ly|ve)| B(l?vd|ridge|nd|ypass|rae|(ike|us)way)| C([lrt]|hase|ove|res|ir)| D(ell|r)| E(ast|nt|xit|splanade)| F(wy|all)| G(r|ln|rv|r(ee)?n|dns?|ate)| H(ts|wy|ospital)| Jct| L(ink|ine|[np])| M(twy|w|ile|ohr|ews)| North| One| P(ark|rom|de|l|kwy|oint)| R([id]|ow|ise|amp|ailway|un(way)?)| S(outh|pur|upermarket|[qt])| T(ce|unnel|urn|rl|ra(k|il))| V((ie)?w|st)| W(ay|est|ynd)| Xing|^$)$|^(State |The |E(xit( to:)?|ntry) )/
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: 2688 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby sketch » Wed Apr 08, 2015 5:17 pm

ispyisail wrote:Thanks Guys working really well

This is actually a really good candidate for the kind of thing I was doing earlier:

Code: Select all
/(10|11):(?!State |The |.* (Glade|Row|Vale|Hill|Point|Hospital|Supermarket|Fall|Brae|Wynd|Mile|Mohr|Dell|One|Trak|Trail|Ramp|Esplanade|Cir|View|Gate|Green|Bvd|Gln|Mews|Gdns|Run|Runway|Trl|Cl|Gr|Spur|Rise|Cres|Aly|Ave|Blvd|Bikeway|Bnd|Bridge|Busway|Bypass|Chase|Cl|Cove|Cr|Ct|Dr|East|Ent|Exit|Fwy|Gdn|Grn|Grv|Hts|Hwy|Jct|Link|Line|Ln|Lp|Mtwy|Mw|North|Park|Pde|Pl|Pkwy|Prom|Railway|Ri|Rd|South|Sq|St|Tce|Tunnel|Turn|Vw|Vst|Way|West|Xing)$|.*Unknown Name$|^$|$)/

Saves you the trouble of retyping ".* " and "$" every 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: 2688 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby sketch » Sat Apr 11, 2015 5:02 pm

Thortok2000 wrote:Then you never have to worry about new layers coming out or recording the layers the user has active or learning what the new numbers for the layers are or any of that nonsense. Just don't include the &layers part in the url. At all.

I agree that layer-free PLs would be helpful from Validator. But Validator isn't disabling the experimental roads layer.

Because the experimental roads layer is (presumably) intended to eventually take place of the roads layer, it does not have a place in the WME layer number. It's simply not accounted for at all. So if you create a permalink with the experimental roads layer on, it won't have the experimental roads layer enabled in it, because there's no place for it in the layers= number. This is true no matter how you create the permalink (provided that layers are included), whether in the editor, by a script, or what have you.

So, like I said, I agree that a layerless permalink is a good solution in this case. I'm just explaining that nothing is actively "disabling" the layer, that the layer is disabled by a (deliberate) omission in WME itself.
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: 2688 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby sketch » Sat Apr 11, 2015 5:15 pm

Validator is intending to keep the layers you had on when you created the report. That's what it does (experimental road layer notwithstanding). You can keep the report open or elsewhere and open parts of it back up later in the same situation you created the report in. That's the idea. Maybe it wasn't the most futureproof idea in the world, as it turned out, but it's still not a bad idea.
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: 2688 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby sketch » Fri May 01, 2015 5:50 pm

ispyisail wrote:Hi all

I'm trying to find "alternate" streets names but for some reason I can't get my search to work?

Code: Select all
${typeRank}:${altStreet}
/(10|11):(^(.(?!(Rd$)))*$)/


I'm trying to find all alternate street names that that don't finish with "Rd" that are street or primary street.

I don't know why it doesn't work, tried may things

Thanks

First off, ^ is the beginning of the string. You only get one string, and the string is [typerank]:[altstreet], so ^ is before the typerank number. The colon is an arbitrary separator between the typerank and the alt name, it does not establish separate strings for the purposes of regex.

${altStreet[#]} prints a list of all alt streets separated by the # character (also arbitrary, like the colon above). I added that stuff in and removed some superfluous parentheses. I'm not sure if this will work, because I'm not very good with negative lookaheads, but it's closer.
Code: Select all
${typeRank}:${altStreet[#]}
/(10|11):.(?!(Rd(#|$)))*(#|$)/
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: 2688 times

Re: [Script] WME Validator 1.1.8 / 07.05.2015

Postby sketch » Tue Jul 07, 2015 1:38 am

taco909 wrote:But like WMECH and TB, I would be happy to see more granular control over Validator's reported errors so that individual errors such as this could be toggled off.

Easily done. If you don't want to see "Street name on two-way Ramp", put "!28" ("not 28") in the "Reported as" field on the [Magnifying glass] page. You can see the numbers by hovering over the report name in the left panel. Separated by commas, you can turn off any checks you like by including a string like "!28,!128", or show only certain checks by using a string like "28,128".

As for turning it off completely, it's pretty useful in the USA, so we'd like to keep it. Of course, berestovskyy can add or remove any particular check for any particular country... but good luck finding him......
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: 2688 times

Re: [Script] WME Validator 1.1.20 / 03.11.2016

Postby sketch » Mon Feb 13, 2017 4:23 pm

Glodenox wrote:It's just a regular userscript, so I can't see where there would be a difference between TamperMonkey and GreaseMonkey here. Unless there's another bug that is only present on Firefox that hasn't been fixed this way. But I'll look into it closer in a couple of hours.

There is also a Chrome Web Store version, for which this apparently will not work.
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: 2688 times

Re: [Script] WME Validator 1.1.20 / 03.11.2016

Postby sketch » Wed Mar 01, 2017 8:41 pm

turbomkt wrote:
jdelosa wrote:So if Mr. berestovskyy , ever does come back to this script, it would be great if there as a shut off button for the report, so the script is not using memory to compile a report i am not going to use.

I hope he will because this is one of the most useful scripts. Thanks for you work. JD


By default I don't have it running.

But then it doesn't do anything ;)

It would be nice to disable logging so that highlights could still be displayed, without using the memory to compile the report that is seldom used.
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: 2688 times

Re: [Script] WME Validator 1.1.20 / 03.11.2016

Postby sketch » Thu Mar 02, 2017 12:48 pm

Plenty of scripts highlight without building a log that you can read. Validator is the only one that continues to hold the identities of those segments long after they're off screen, until cleared manually.

Understandable given its design to scan larger sections of the map, but many don't use it that way, so it's an unnecessary extra step.
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: 2688 times

Re: [Script] WME Validator 1.1.20 / 03.11.2016

Postby sketch » Thu Mar 02, 2017 1:51 pm

SpencerFG wrote:Just for the record, I, and I assume others use the log. It's particularly useful in large areas of base map to highlight and quickly find problems. I didn't know it kept a log when just being run passively, though.

Indeed, which is why the suggestion is to allow users to turn off logging. I would not suggest gutting the core functionality of the script just to save some annoyance every once in a while ;)
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: 2688 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: Mapman44, Mythdraug