[Script] WME Validator 2020.04.12 (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 PesachZ » Thu May 07, 2015 2:48 am

This has happened before, the developer is most definitely tied up in his real life, and will push an update in the near future. Just bear with it for a bit, it shouldn't be too long.

Take this opportunity to experience wme without validator, realize its benefits, and thank the author for the awesome job he's done with it so far.

Sent using Tapatalk for Android 4.4.2
PesachZ
Wiki Master
Wiki Master
 
Posts: 4512
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC}
Has thanked: 1998 times
Been thanked: 2374 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby PesachZ » Thu May 07, 2015 2:54 pm

The author previously explained his rationale for the expiration date.

berestovskyy wrote:Hi!
Sorry, I missed the expiration date :(


alexschrod wrote:In the next update, if the author wants this kind of behavior in place, they should add another check first that sends a request to see if there is an actual update ready

Validator does not send or receive any data from the internet for security reasons.

wlodek76 wrote:Could you explain us why do you lock this script ? What is purpose of doing this ?

The script has an expiration date since the v0.3. The first few versions expired just in 7 days to force users to update the script...

It also forces me to update the script and publish a new version. And it really motivates me lately...



Sent using Tapatalk for Android 4.4.2
PesachZ
Wiki Master
Wiki Master
 
Posts: 4512
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC}
Has thanked: 1998 times
Been thanked: 2374 times

Re: [Script] WME Validator 1.1.8 / 07.05.2015

Postby PesachZ » Fri Jun 19, 2015 4:51 pm

crazycaveman wrote:
ispyisail wrote:Hi all

I'm looking for a custom search that will find all "Street" and "Primary Street" that have more than one "alternate name"

as always

Thanks


Try this:
Code: Select all
Template: ${typeRank}:${altStreet[1]}
Regexp: /1[01]:.+/

Would that also match segments with only one alt name?

Sent using Tapatalk for Android
PesachZ
Wiki Master
Wiki Master
 
Posts: 4512
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC}
Has thanked: 1998 times
Been thanked: 2374 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby PesachZ » Sun Jul 19, 2015 1:52 pm

crazycaveman wrote:Here's an updated type list (not typerank):
${type}
Code: Select all
1:  Street
2:  Primary Street
3:  Freeway
4:  Ramp
5:  Walking Trail
6:  Major Highway
7:  Minor Highway
8:  Dirt Road / 4X4 Trail
9:
10: Pedestrian Boardwalk
11:
12:
13:
14: Ferry
15:
16: Stairway
17: Private Road
18: Stairway
19: Runway/Taxiway
20: Parking Lot Road
21: Service Road (deprecated)

FYI ferries (at least in the USA) are now using type 15
PesachZ
Wiki Master
Wiki Master
 
Posts: 4512
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC}
Has thanked: 1998 times
Been thanked: 2374 times

Re: [Script] WME Validator 1.1.8 / 07.05.2015

Postby PesachZ » Tue Sep 08, 2015 6:39 pm

taco909 wrote:Not sure if this was mentioned before.
Validator triggers an error on "Incorrect abbreviation" when the street name terminates with a period.

With the new handling of cardinals, we need to have Validator ignore this iff the last character pair is " N.", " S.", " E.", or " W."

Example: "W Avenue N." comes out properly on TTS as "West Avenue N"
This is valid, but Validator triggers on the "N."

This has been mentioned above, but validator has not been updated yet.

You can add NE. and SW. to the list

Sent using Tapatalk for Android
PesachZ
Wiki Master
Wiki Master
 
Posts: 4512
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC}
Has thanked: 1998 times
Been thanked: 2374 times

Re: [Script] WME Validator 1.1.8 / 07.05.2015

Postby PesachZ » Fri Oct 02, 2015 9:04 am

LeighGr wrote:I'm busy creating a WMEV localization pack for South Africa, but am bashing my head against a wall with some weird errors. The following code works fine for mH segments named R100 to R512, and then again from R516 onwards, but R513, R514 and R515 all get flagged as incorrect. WHY?????

Code: Select all
// Custom Check - Minor Highway Name Format
  "137.enabled": true,
  "137.params": {
    "titleEN": "Incorrect name format on Minor Highway",
    "problemEN": "All Minor Highways name format should be (R###) numbered > 100 ",
    "solutionEN": "Change name to ... (R###)",
    "template": "${typeRank}:${street}:${direction}",
    "regexp": "/(13):(?!R[0-9]{3} [NESW]:(1|2) ?|(R[0-9]{3}:(3))$)/"
  },
  "137.solutionLink": "W:South_Africa#Road_Network",


513 is being flagged because you are not anchoring and it is matching the 13:R513:3 from the string produced by your template.

you could try this and see if works better for you.
Code: Select all
"regexp": "/^13:(?!(R[1-9]\\d{2}( [NESW]:[12] ?|:3))$)/"


I also noticed you are allowing an optional space in the string after the direction on one-way segments, not sure why you would want that, but I did include it. I moved the anchors and groups around a bit to accomplish what I think you want.
"/(13):(?!R[0-9]{3} [NESW]:(1|2) ?|(R[0-9]{3}:(3))$)/"

Edit: your code also allowed numbers <100 such as R099, as long as they were 3 digits. I updated it to only allow >100.
Edit2: shortened code, should still work the same
PesachZ
Wiki Master
Wiki Master
 
Posts: 4512
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC}
Has thanked: 1998 times
Been thanked: 2374 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby PesachZ » Sun Oct 04, 2015 3:03 am

Here's an updated type list (not typerank): fixed Ferry, Stairway, and added Railroad.
${type}
Code: Select all
1:  Street
2:  Primary Street
3:  Freeway
4:  Ramp
5:  Walking Trail
6:  Major Highway
7:  Minor Highway
8:  Dirt Road / 4X4 Trail
9:
10: Pedestrian Boardwalk
11:
12:
13:
14: [i](old: Ferry)[/i]
15: Ferry
16: Stairway
17: Private Road
18: Railroad [i](old: Stairway)[/i]
19: Runway/Taxiway
20: Parking Lot Road
21: [i]Service Road (deprecated)[/i]
PesachZ
Wiki Master
Wiki Master
 
Posts: 4512
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC}
Has thanked: 1998 times
Been thanked: 2374 times

Re: [Script] WME Validator 1.1.8 / 07.05.2015

Postby PesachZ » Sun Oct 04, 2015 11:06 am

vince1612 wrote:Quick question : I keep getting this in the Validator report after I scan a certain area.
Might be incorrect city name (only available in the report) (#24)
The segment might have incorrect city name: wiki
Consider suggested city name and use this form to rename the city: forum

Gy — city name is too short
Allée du Chambet, Gy
65434649
...


But that village's name is really just "Gy"
I would use the filter in the city name with !Gy to ignore it, but then it would just not show any potential errors on these segments as they would be ignored (if I understand this right).

How can I make it ignore the "city name is too short" error only, from the report, while still scanning these segments for anything else that could be wrong with them ?

I hope the answer is not too obvious :oops:

You can disable check #24 by typing it in the Reported As: of the filters. Assuming that's the only check you want to disable you would type in
Code: Select all
!24,*
PesachZ
Wiki Master
Wiki Master
 
Posts: 4512
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC}
Has thanked: 1998 times
Been thanked: 2374 times

Re: [Script] WME Validator 1.1.8 / 07.05.2015

Postby PesachZ » Wed Oct 28, 2015 10:12 pm

AlanOfTheBerg wrote:Sheesh, I can't even get Validator to load at all. The only line in the console on load is "WME Validator v1.1.8: login AlanOfTheBerg". Win7/Chrome 46.0.2490.71 m. Ideas?

Are you in WME Beta? Validator is broken in the latest beta.

Sent from Android using Tapatalk
PesachZ
Wiki Master
Wiki Master
 
Posts: 4512
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC}
Has thanked: 1998 times
Been thanked: 2374 times

Re: [Script] WME Validator 1.1.8 / 07.05.2015

Postby PesachZ » Wed Oct 28, 2015 11:35 pm

AlanOfTheBerg wrote:
PesachZ wrote:
AlanOfTheBerg wrote:Sheesh, I can't even get Validator to load at all. The only line in the console on load is "WME Validator v1.1.8: login AlanOfTheBerg". Win7/Chrome 46.0.2490.71 m. Ideas?

Are you in WME Beta? Validator is broken in the latest beta.

Nope, I wish it was that simple. :) I knew that it wasn't working in beta.

Are you using a localization package?

Sent from Android using Tapatalk
PesachZ
Wiki Master
Wiki Master
 
Posts: 4512
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC}
Has thanked: 1998 times
Been thanked: 2374 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: Google Feedfetcher, jm6087