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
PesachZ wrote:
ispyisail wrote: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?
You could use the power of regex to shorten it by reusing certain common letters [emoji13]

Sent using Tapatalk for Android 4.4.2
I have enough trouble with the easy stuff :(

Could you show us an example?
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 working really well

Code: Select all

${typeRank}:${street}

Code: Select all

/(10|11):(?!State |The |.* Glade$|.* Row$|.* Vale$|.* Hill$|.* 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$|^$|$)/
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
Thanks sketch

If I could tick "like" 1000 times I would

Much appreciated
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail

Code: Select all

/(10|11):(?!State |The |.* (Glade|Row|Vale|Hill|Point|Hospital|Supermarket|Fall|Brae|Wynd|Mile|Mohr|Dell|One|Trak|Trail|Ramp|Esplanade|Cir|View|Gate|Green|Bvd|Gln|Mews|Gdns|Run|Runway|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)$|.*Unknown Name$|^$|$)/
The best part about this one is it is clean, easy to read, understand and modify

Thanks again
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
Doing some work with this new rule and it works great!

I'd noticed in NZ with new roads there is a trend to drop road type in the name all together

e.g. Not
Willowridge Rd
Willowridge St

Instead just

Willowridge

Can we make a mod to the rule to exclude any "street name" with no space/s in the middle?

as always, thanks
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
Hi all

I'm trying to find "alternate" streets names but for some reason I can't get my search to work?

Code: Select all

${typeRank}:${altStreet}
/(10|11):(^(.(?!(Rd$)))*$)/
I'm trying to find all alternate street names that that don't finish with "Rd" that are street or primary street.

I don't know why it doesn't work, tried may things

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

Post by ispyisail
${typeRank}:${altStreet[#]}
/(10|11):.(?!(Rd(#|$)))*(#|$)/
Thanks

It doesn't appear to work but has given me many tips to work on
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

Post by ispyisail
I give up, it appears quite tricky :(
ispyisail
Waze Local Champs
Waze Local Champs
Posts: 3369
Has thanked: 502 times
Been thanked: 547 times
Send a message

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

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