[Script] WME Validator 1.1.20 / 03.11.2016

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

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 Atuuu » Tue Apr 15, 2014 9:17 am

First of all - thanks for the very usefull script!
Could you please modify these rules for Latvia (LV) in the main package to fit my examples:

#33 No space before ("1943r.") or after ("gm.Jana") an abbreviation in the city name.
Example "Bruzilas [Saldus nov.]"


#173 No space before ('1943r.') or after ('st.Jan') an abbreviation in the street name.
Example "1905. gada iela"
Atuuu
Waze Local Champs
Waze Local Champs
 
Posts: 789
Joined: Thu Mar 22, 2012 4:35 pm
Location: Rīga, Tukums, Jūrmala
Has thanked: 106 times
Been thanked: 147 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.
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 5912
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1418 times
Been thanked: 1936 times

Re: [Script] WME Validator 0.9.7 (BETA) / 08.04.2014

Postby BellHouse » Mon Apr 14, 2014 7:41 pm

Yes, I think we mean the same thing. It doesn't work for English, but it does work for all other languages.
BellHouse
Waze Global Champs
Waze Global Champs
 
Posts: 3447
Joined: Sun May 12, 2013 5:57 pm
Location: Cologne / Germany
Has thanked: 785 times
Been thanked: 2451 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 ]
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 5912
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1418 times
Been thanked: 1936 times

Re: [Script] WME Validator 0.9.7 (BETA) / 08.04.2014

Postby BellHouse » Mon Apr 14, 2014 6:43 pm

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.
BellHouse
Waze Global Champs
Waze Global Champs
 
Posts: 3447
Joined: Sun May 12, 2013 5:57 pm
Location: Cologne / Germany
Has thanked: 785 times
Been thanked: 2451 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.
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 5912
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1418 times
Been thanked: 1936 times

Re: [Script] WME Validator 0.9.7 (BETA) / 08.04.2014

Postby irowiki » Fri Apr 11, 2014 7:07 pm

Oh, it means click "play" to continue. (or it might be pause at that point)
irowiki
 
Posts: 250
Joined: Tue Feb 11, 2014 3:05 pm
Has thanked: 68 times
Been thanked: 40 times

Re: [Script] WME Validator 0.9.7 (BETA) / 08.04.2014

Postby Jay91150 » Fri Apr 11, 2014 6:58 pm

irowiki wrote:It is possible (but unlikely, I think) that the area you were scanning was already cleaned up.


It's highly likely as I spent a couple of weeks checking the entire area and cleaning up what I could. I am running Validator again to make sure everything was caught, and to see if the new checks recently added hit on anything.

My greater concern is that I don't have a square-box key on my keyboard, so I don't know what I'm supposed to press to continue.
Jay91150
 
Posts: 384
Joined: Thu Jan 23, 2014 8:01 pm
Location: Bragg Creek, Alberta, Canada
Has thanked: 97 times
Been thanked: 90 times

Re: [Script] WME Validator 0.9.7 (BETA) / 08.04.2014

Postby irowiki » Fri Apr 11, 2014 6:56 pm

It is possible (but unlikely, I think) that the area you were scanning was already cleaned up.

Otherwise, try zooming in a bit and running the report again.
irowiki
 
Posts: 250
Joined: Tue Feb 11, 2014 3:05 pm
Has thanked: 68 times
Been thanked: 40 times

Re: [Script] WME Validator 0.9.7 (BETA) / 08.04.2014

Postby Jay91150 » Fri Apr 11, 2014 6:53 pm

Curious - what am I supposed to click here?

clickwhut.PNG


[ img ]

This is on a Windows XP computer with all the proper fonts installed, on the latest Google Chrome.

For what it's worth, "Show report" was greyed out and inaccessible, and clicking the play-icon button again let Validator continue, and it eventually finished, with zero things to report ("Show report" still greyed out).
Jay91150
 
Posts: 384
Joined: Thu Jan 23, 2014 8:01 pm
Location: Bragg Creek, Alberta, Canada
Has thanked: 97 times
Been thanked: 90 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: Olestas