[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 1.1.6 / 06.01.2015

Postby ispyisail » Wed Feb 25, 2015 9:22 pm

Do we need a wiki page for validator custom searches

Its getting hard to find stuff in this thread
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3367
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 573 times
Been thanked: 554 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby sketch » Wed Feb 25, 2015 9:18 pm

This is what I have written down. I haven't verified or updated it recently. For example, you can see that Ferry isn't in there.
Code: Select all
typeRank
15 freeway
14 major highway
13 minor highway
12 ramp
11 primary street
10 street
9 service road
8 dirt road
7 parking lot road
6 private road
5 walking trail
4 pedestrian bdwk
3 stairway
2 railroad
1 runway


type
1 street
2 primary street
3 freeway
4 ramp
5 walking trail
6 major hwy
7 minor hwy
8 dirt
9
10 ped boardwalk
11
12
13
14
15
16 stairway
17 private road
18 railroad
19 runway
20 parking lot road
21 service road
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 5854
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1391 times
Been thanked: 1884 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby ispyisail » Wed Feb 25, 2015 8:53 pm

Just for interest if I want to change ${typeRank} to add other street types?

Code: Select all
1:  Runway
2:  Railroad
3:  Stairway
4:  Pedestrian Boardwalk
5:  Walking Trail
6:  Private Road
7:  Parking Lot Road
8:  Dirt Road
9:  Service Road
10: Street
11: Primary Street
12: Ramp
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3367
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 573 times
Been thanked: 554 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby ispyisail » Wed Feb 25, 2015 8:48 pm

Thanks guys

It appears to be working now

I'm finding stuff you would now normally find.

In the big picture im not sure how important it is through?

e.g.
Kiara st, Marayong
Pippitta st, Marayong
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3367
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 573 times
Been thanked: 554 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby sketch » Wed Feb 25, 2015 8:19 pm

PesachZ wrote:
ispyisail wrote:Hi guys

Its not working as expected

Cut and paste from validator just in case

Code: Select all
${typeRank}:${street}
/^1[01]:.*( [a-z)|([A-Z]{2})


It picked up many road but not what i was after

examples

Crawford Rd
Fonterra Te Rapa
Piwakawaka Court
Arncliffe Tce

Thoughts?

Thanks

Missing closing square bracket

I think this is looking for any road type 10 or 11, which has in the name a string of space, followed by two characters which be any lowercase or uppercase, or parentheses or a pipe or opening square bracket. Basically I think it is matching any two consecutive letters "case insensitive" or any of the following [()|

Regardless of what exactly it is matching try this to fix it. This still only looks for matches on road type 10 or 11

Code: Select all
${typeRank}:${street}
/^1[01]:.*( [a-z])|([A-Z]{2})

Sent using Tapatalk for Android 4.4.2

You got too many parentheses in there. Do this:
Code: Select all
${typeRank}:${street}
/^1[01]:.*( [a-z]|[A-Z]{2})

Options work like this (option 1|option 2), not like this (option 1)|(option 2).
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 5854
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1391 times
Been thanked: 1884 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby PesachZ » Wed Feb 25, 2015 5:16 pm

ispyisail wrote:Hi guys

Its not working as expected

Cut and paste from validator just in case

Code: Select all
${typeRank}:${street}
/^1[01]:.*( [a-z)|([A-Z]{2})


It picked up many road but not what i was after

examples

Crawford Rd
Fonterra Te Rapa
Piwakawaka Court
Arncliffe Tce

Thoughts?

Thanks

Missing closing square bracket

I think this is looking for any road type 10 or 11, which has in the name a string of space, followed by two characters which be any lowercase or uppercase, or parentheses or a pipe or opening square bracket. Basically I think it is matching any two consecutive letters "case insensitive" or any of the following [()|

Regardless of what exactly it is matching try this to fix it. This still only looks for matches on road type 10 or 11

Code: Select all
${typeRank}:${street}
/^1[01]:.*( [a-z])|([A-Z]{2})

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

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby ispyisail » Wed Feb 25, 2015 5:07 pm

Hi guys

Its not working as expected

Cut and paste from validator just in case

Code: Select all
${typeRank}:${street}
/^1[01]:.*( [a-z)|([A-Z]{2})


It picked up many road but not what i was after

examples

Crawford Rd
Fonterra Te Rapa
Piwakawaka Court
Arncliffe Tce

Thoughts?

Thanks
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3367
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 573 times
Been thanked: 554 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby ispyisail » Wed Feb 25, 2015 4:56 pm

crazycaveman wrote:You need a .* in there before the opening parenthesis; also the typerank is wrong. Give this a try:
Code: Select all
${typeRank}:${street}
/^1[01]:.*( [a-z)|([A-Z]{2})


When you combine two checks like that, the regex tries to match it in the exact order you have it, which is why the .* is necessary


Thanks
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3367
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 573 times
Been thanked: 554 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby SuperDave1426 » Wed Feb 25, 2015 4:46 pm

So, no word on why when looking for ${typeRank} values that used to highlight Private, PLR & Dirt Roads no longer works?
SuperDave1426
Country Manager
Country Manager
 
Posts: 849
Joined: Wed Oct 16, 2013 5:27 pm
Location: Nevada, USA
Has thanked: 77 times
Been thanked: 242 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby crazycaveman » Wed Feb 25, 2015 11:34 am

You need a .* in there before the opening parenthesis; also the typerank is wrong. Give this a try:
Code: Select all
${typeRank}:${street}
/^1[01]:.*( [a-z)|([A-Z]{2})


When you combine two checks like that, the regex tries to match it in the exact order you have it, which is why the .* is necessary
crazycaveman
Country Manager
Country Manager
 
Posts: 702
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 239 times
Been thanked: 383 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: JustinS83