[Script] WME Validator v2021.3.5 (+ 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.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
New Zealand and Papua New Guinea Country Manager
[ img ][ img ][ img ]
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3369
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 564 times
Been thanked: 568 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
New Zealand and Papua New Guinea Country Manager
[ img ][ img ][ img ]
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3369
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 564 times
Been thanked: 568 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
New Zealand and Papua New Guinea Country Manager
[ img ][ img ][ img ]
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3369
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 564 times
Been thanked: 568 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
New Zealand and Papua New Guinea Country Manager
[ img ][ img ][ img ]
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3369
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 564 times
Been thanked: 568 times

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
New Zealand and Papua New Guinea Country Manager
[ img ][ img ][ img ]
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3369
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 564 times
Been thanked: 568 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby ispyisail » Wed Apr 01, 2015 6:17 am

Hi Guys

I would like some help with a custom search.

I'm finding correct abbreviations for street names

Code: Select all
${street}
!/( Rd| St|^$)$|^(State |The )/


Don't find any names ending in "Rd", "St" or "blank" or beginning with "State" or "The"


I would like to change the above search, plus only for

Street
primary street

In another search I would like to be able to search only for

Street
primary street
Ramp
Minor Highway
Major Highway
Freeway

Thanks
New Zealand and Papua New Guinea Country Manager
[ img ][ img ][ img ]
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3369
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 564 times
Been thanked: 568 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby ispyisail » Sun Apr 05, 2015 9:52 am

ispyisail wrote:Hi Guys

I would like some help with a custom search.

I'm finding correct abbreviations for street names

Code: Select all
${street}
!/( Rd| St|^$)$|^(State |The )/


Don't find any names ending in "Rd", "St" or "blank" or beginning with "State" or "The"


I would like to change the above search, plus only for

Street
primary street

In another search I would like to be able to search only for

Street
primary street
Ramp
Minor Highway
Major Highway
Freeway

Thanks


I've had a few goes at getting this to work

What stumps me is I only want to inverse one search but not the other?

Code: Select all
!/........./
New Zealand and Papua New Guinea Country Manager
[ img ][ img ][ img ]
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3369
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 564 times
Been thanked: 568 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby ispyisail » Sun Apr 05, 2015 7:45 pm

crazycaveman wrote:You could try using a negative lookahead. In this case, it would look something like
Code: Select all
${typeRank}:${street}
/1[01]:((?!State |The |$)|(?!.* Rd|.* St)$)/

I think this will work, but haven't had a chance to test it yet


Thanks

Just tested but something is not right :(
New Zealand and Papua New Guinea Country Manager
[ img ][ img ][ img ]
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3369
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 564 times
Been thanked: 568 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby ispyisail » Sun Apr 05, 2015 7:45 pm

Another user PMed me and suggested

Code: Select all
/!(.......)|(.......)/


But I could get that to work either :(
New Zealand and Papua New Guinea Country Manager
[ img ][ img ][ img ]
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3369
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 564 times
Been thanked: 568 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby ispyisail » Mon Apr 06, 2015 6:33 pm

crazycaveman wrote:I think I might have been making it too complicated... How about this:
Code: Select all
/1[01]:(?!State |The |.* Rd$|.* St$|$)/


I think this may be working, need to do more tests
New Zealand and Papua New Guinea Country Manager
[ img ][ img ][ img ]
ispyisail
Waze Local Champs
Waze Local Champs
 
Posts: 3369
Joined: Tue Feb 21, 2012 11:59 pm
Location: New Zealand
Has thanked: 564 times
Been thanked: 568 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: BenEnmen, jm6087