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.
Post by ispyisail
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: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
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: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
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: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
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: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
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
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
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

!/........./
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
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 :(
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
Another user PMed me and suggested

Code: Select all

/!(.......)|(.......)/
But I could get that to work either :(
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
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
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
My rule is getting so long that I might need to create a rule generator

Code: Select all

 !/( Row| Point| Hospital| Supermarket| Fall| Brae| Wynd| Mile| Mohr| Dell| One| Trak| Trail| Ramp| Esplanade| Cir| View| Gate| Green| Bvd| Gln| Mews| Gdns| Run| Runway|Unknown Name| Trl| Cl| Gr| Spur| Rise| Cres| Aly| Ave| Blvd| Bikeway| Bnd| Bridge| Busway| Bypass| Chase| Cl| Cove| Cr| Ct| Dr| East| Ent| Exit| Fwy| Gdn| Grn| Grv| Hts| Hwy| Jct| Link| Line| Ln| Lp| Mtwy| Mw| North| Park| Pde| Pl| Pkwy| Prom| Railway| Ri| Rd| South| Sq| St| Tce| Tunnel| Turn| Vw| Vst| Way| West| Xing|^$)$|^(State |Exit to: |The |Exit |Entry )/
I wonder what the max length is?
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message