[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 0.9.7 (BETA) / 08.04.2014

Postby sketch » Tue Apr 08, 2014 11:40 pm

berestovskyy wrote:For US Country Managers (and not only)

Hi, I am provisionally willing to help out with this. The problem is I'm not familiar with regexp, but I looked over some of the character functions today and am willing to learn. I am, however, quite familiar with the US editing guidelines.

I'd prefer to keep the US checks rolled into the regular Validator, if that's okay.
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 0.9.7 (BETA) / 08.04.2014

Postby sketch » Fri Apr 11, 2014 12:23 am

[STRIKE]Does a localization pack have to be installed the same way as Validator?

It's entirely possible I'm doing something wrong, but as a preliminary matter, should it be working if I have the localization pack installed in Tampermonkey but Validator installed from Chrome Web Store?[/STRIKE]

Actually, nevermind that. I figured out the problem, I had "130.enable" from an old forum post instead of "130.enabled" like in the example file.

Is there a way to change the severity of a custom check from Note? I don't see one in the Wizard example.
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 0.9.7 (BETA) / 08.04.2014

Postby sketch » Mon Apr 14, 2014 3:40 pm

BellHouse wrote:There are some nice instructions in this post.

That particular bit of code doesn't work anymore — some changes seem to have been made between that post and now. Start the Wizard and check out the current example given in the code comments, it's slightly different.

I've spoken to berestovskyy about it, it's now a known issue.
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 0.9.7 (BETA) / 08.04.2014

Postby sketch » Mon Apr 14, 2014 6:50 pm

BellHouse wrote:Maybe we are talking about different checks, but this piece of code works fine for me just now:

Code: Select all
  "130.enabled": true,
  "130.severity": "warning",
  "130.params": {
    "titleEN": "Segment with alternative name",
    "solutionEN": "Delete the alternative name(s)",
    "problemEN": "The segment has at least one alternative name",
    "template": "${altStreet[0]}",
    "regexp": "^.+$"
  },

(I left away the localized parameters in my example)

If you put this into a localization script, the severity setting will only become active if you set WME to the correct language (so it won't if WME is set to English). On an english WME the same custom check will be a note, so one might call that part a bug, yes.

Then perhaps the severity is working for yours, but not working on EN-US localization packages:

Code: Select all
"130.enabled": true,
"130.severity": "warning",
"130.params": {
  "titleEN": "Missing directional on Freeway",
  "problemEN": "The Freeway segment is missing a directional (NSEW)",
  "solutionEN": "Add the directional for the signed direction of travel",
  "template": "${length}:${type}:${street}",
    "regexp": "/^[1-9][0-9]{1,9}:3:.*(?! [SNEW]$)..$/",
  },


[ img ]
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 0.9.7 (BETA) / 08.04.2014

Postby sketch » Mon Apr 14, 2014 7:50 pm

BellHouse wrote:Yes, I think we mean the same thing. It doesn't work for English, but it does work for all other languages.

I see. I thought you were saying that the severity parameter wouldn't work if WME was in the incorrect language for the pack — but in my case, English is the correct language for my pack. So it appears that this is a bug for any English Validator custom checks pack, then.
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 0.9.7 (BETA) / 08.04.2014

Postby sketch » Tue Apr 15, 2014 5:21 pm

Discussion on the US localized Validator checks has been moved to the United States forum.

WME Validator localization for US
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 0.9.8 (BETA) / 15.04.2014

Postby sketch » Thu Apr 24, 2014 5:16 am

MGODLEW wrote:I'd like to make a request for Validator. In Pennsylvania we have a lot of roads that have not had their primary names updated since the base map. For the example here the roads primary name is currently "T493" however the actual primary name is in the alternative "Hanny Beaver Rd" Is there a way you can color roads that are a letter & number? I'm no programmer or script writer but my guess is the script would be something like <If street name = character (T)(integer)(integer)(integer) then color = Lime Green> I this possible to add? If not an always on feature then something that can be turned off and on.

Is it always T followed by 3 digits and that's it?

If so, set this in your custom check:
custom template:
Code: Select all
${street}
custom regexp:
Code: Select all
/^T[0-9]{3}$/
That will report every instance where the road name is "T###" exactly, nothing before or after, not even a space. (It seems to be working for this example.)

If you remove only the "$" it will report everything that starts with "T###" regardless of what follows, if you remove only the "^" it will report everything that ends with "T###" regardless of what comes before, and if you remove both ^ and $ it will report everything that has T### in it at all.
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 0.9.9 (BETA) / 27.04.2014

Postby sketch » Sun May 11, 2014 6:46 pm

I like to use http://www.downforeveryoneorjustme.com/ for that purpose.
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 0.9.9 (BETA) / 27.04.2014

Postby sketch » Mon May 19, 2014 3:44 am

Right, I'm not even sure it should be offered. Might encourage editors to change a category erroneously. For example, a cigar shop – doesn't really fit anywhere besides the general "Shopping and services".
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.0.0 / 26.05.2014

Postby sketch » Sun Jun 01, 2014 1:54 am

Sorry if I'm just remembering wrong, but is the scan supposed to pick up on custom checks and put them in the report?
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: JustinS83, Mythdraug