[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.7 / 06.03.2015

Postby crazycaveman » Tue Mar 10, 2015 2:57 am

dougp01 wrote:
crazycaveman wrote:If you have the experimental road layer enabled and the legacy roads disabled, no roads will be displayed because the experimental layer does not yet get enabled through a permalink. Might be best to enable the roads layer before running a scan so you don't have to enable them with every permalink to follow


I think this might be okay except the Shift-R functionality has been overwritten with experimental roads. I for one am a big user of shortcuts and dutifully navigating menus with my mouse is a bit of a pain. I therefore am attempting to use experimental roads as much as possible and this validator layers problem is a continuous issue for me.

thanks!


This is not an issue with validator, but with WME itself. What I have done is assign the legacy road layer a shortcut of All+R through the shortcut menu (press Shift+?, click the roads label, and press Alt and R and release); gives you an easy way to toggle them. Also, post in the WME 1.9 release thread asking for a fix, that's the only way to hope that this gets changed...
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 833
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 353 times
Been thanked: 523 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby crazycaveman » Sun Apr 05, 2015 7:06 pm

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
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 833
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 353 times
Been thanked: 523 times

Re: [Script] WME Validator 1.1.7 / 06.03.2015

Postby crazycaveman » Mon Apr 06, 2015 1:30 pm

I think I might have been making it too complicated... How about this:
Code: Select all
/1[01]:(?!State |The |.* Rd$|.* St$|$)/
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 833
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 353 times
Been thanked: 523 times

Re: [Script] WME Validator 1.1.8 / 07.05.2015

Postby crazycaveman » Fri Jun 19, 2015 10:41 am

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]:.+/
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 833
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 353 times
Been thanked: 523 times

Re: [Script] WME Validator 1.1.8 / 07.05.2015

Postby crazycaveman » Fri Jun 19, 2015 7:32 pm

PesachZ wrote:
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

No, because arrays in JavaScript are 0 based, so an array index of 1 is actually the second element
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 833
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 353 times
Been thanked: 523 times

Re: [Script] WME Validator 1.1.8 / 07.05.2015

Postby crazycaveman » Fri Sep 04, 2015 12:54 am

If I'm remembering correctly, there's no way to tell if a segment has untouched HNs or not until the HN editor is loaded, so for that to work, validator would have to load the HN editor for each segment to see what needs highlighting, which is impractical. Also, green highlighting is a custom highlight you (or a localization script) has setup.
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 833
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 353 times
Been thanked: 523 times

Re: [Script] WME Validator 1.1.13 / 16.11.2015

Postby crazycaveman » Tue Nov 17, 2015 12:00 am

Nice. That repository will be handy to help keep my localizations up to date. I have framework localizations for a number of states, Hawaii is in there, if you want to use that to tweak the existing checks to your needs (out disable then completely).
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 833
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 353 times
Been thanked: 523 times

Re: [Script] WME Validator 1.1.13 / 16.11.2015

Postby crazycaveman » Wed Nov 18, 2015 4:06 pm

berestovskyy wrote:Wow that's a nice piece of work there!

So I guess we miss a support for states, right?

If you were to add support for states (or even multiple states in one localization), that would be great! I know quite a few states now have localization packs and it might make things easier when coding those.
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 833
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 353 times
Been thanked: 523 times

Re: [Script] WME Validator 1.1.14 / 17.11.2015

Postby crazycaveman » Sun Nov 22, 2015 10:29 pm

Feel free to pm me if you have any questions or changes needed. You can edit check 134 and remove the '|[Ll]oop' part. I saw it on the wiki, but think it was a testing page, but that was the only guidance I could find on how abbreviations should be (including using BUS instead of Bus, to pronounce business)
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 833
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 353 times
Been thanked: 523 times

Re: [Script] WME Validator 1.1.14 / 17.11.2015

Postby crazycaveman » Sun Nov 22, 2015 10:35 pm

It needs to be updated, since it will flag any road with loop in the name. I've corrected it on a few I know are used, but haven't copied that change to all the scripts
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 833
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 353 times
Been thanked: 523 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: jm6087