[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 BellHouse » Mon Feb 23, 2015 8:27 am

ispyisail wrote:Anybody know to make custom script to find street names with all capital letters

Assuming you also accept space characters additionally to the capital letters:
Template: ${street}
RegExp: ^[A-Z][A-Z ]*$
BellHouse
Waze Global Champs
Waze Global Champs
 
Posts: 3472
Joined: Sun May 12, 2013 5:57 pm
Location: Cologne / Germany
Has thanked: 790 times
Been thanked: 2466 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby ispyisail » Mon Feb 23, 2015 8:13 am

Anybody know to make custom script to find street names with all capital letters

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 serega_12 » Mon Feb 23, 2015 12:57 am

maybe pm qwaletee?
serega_12
Map Raider
Map Raider
 
Posts: 278
Joined: Wed Nov 12, 2014 6:20 am
Location: WA, USA (Greater PDX AM, North Seattle AM)
Has thanked: 76 times
Been thanked: 45 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby SuperDave1426 » Mon Feb 23, 2015 12:33 am

Thanks for that. Though, I wonder if the type numbers have changed with the newest version of WME. When I brought up the settings and went to set up the custom template, a regexp value of /1/ resulted in nearby Primary Street and Major Highway types lighting up. Didn't have a Minor Highway nearby, so I don't know about that. The Street type street didn't light up at all, and that chart you quoted says that 1 is a Street. When I changed the regexp to /1$/, the Major Highway was no longer highlighted, but Primary Street still was. And plain old regular Street types remained dark...

Using /20/ didn't light up anything that was nearby, including some PLRs....

So yea, I'm wondering of some of the type numbers have moved around.... :?:

Edit: A bit of searching found this article, listing ${typeRank} values, which was what I wanted anyway. :-) However, the values listed there for PLR, Dirt Road, and Private Road do not cause those road types to be highlighted. I tried a couple of other (Major Highway, Primary Street), and those did light up.

Something seems to have changed, all right, although I'm not sure what. Color Highlighter will highlight those three road types if I check "Highlight a Road Type" and then pick on of them from the drop-down. So Highlighter can figure out what those three are, but using the numbers from that article with Validator doesn't do anything.... :?
Last edited by SuperDave1426 on Mon Feb 23, 2015 1:02 am, edited 1 time in total.
SuperDave1426
Country Manager
Country Manager
 
Posts: 866
Joined: Wed Oct 16, 2013 5:27 pm
Location: Nevada, USA
Has thanked: 79 times
Been thanked: 250 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby serega_12 » Sun Feb 22, 2015 11:18 pm

SuperDave1426 wrote: Does anyone know what regexp value needs to be used with ${typeRank} to select a parking lot road type? 'Cause I can't seem to find it. :-)


Just did a quick search of this thread for "type plr" and came up with this post. ;)

Hope this helps.


qwaletee wrote:Just FYI, here is the list of codes for each ${type}:

1 Street
2 Primary Street
3 FW
4 Ramp
5 Walking trail
6 MH
7 mH
8 Dirt
9 Unassigned?
10 Boardwalk
11-15 Unassigned?
16 Stairway
17 Private
18 Railroad
19 Runway
20 PLR
21 Service rd

Putting it at the end (the $ says there can't be anything after it, so 1-Street is not confused with 10-Boardwalk or 16-Stairway, etc.):

template: ${street}:${length}:${type}
expression: /^:[0-9]{3,}:[1-46-8]$/

This says street name is blank (nothing between start and first colon), length has at least 3 digits ([0-9] is any digit, {3,} means 3 or or of that), and [1-46-8] means any single digit except 0, 5, or 9, which most of the common types that you would expect to have a name, except that ramp may not have a name. Railroad should probably also be included, in which case:

expression for nameless >=100m of types expecting a name (which EXCLUDES ramps): /^:[0-9]{3,}:([1-36-8]|18)$/

Excuse the RegEx tutorial :)
serega_12
Map Raider
Map Raider
 
Posts: 278
Joined: Wed Nov 12, 2014 6:20 am
Location: WA, USA (Greater PDX AM, North Seattle AM)
Has thanked: 76 times
Been thanked: 45 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby SuperDave1426 » Sun Feb 22, 2015 8:48 pm

With the new version of WME, when using the "roads experimental" layer, PLRs now seem to vanish because they're small and thin, and a color that compliments the color of the asphalt road in the satellite imagery quite nicely. :shock: ;)

Hopefully, they'll change those things, but in the meantime, I'd like a way to make them stand out better when I'm working on the map. Does anyone know what regexp value needs to be used with ${typeRank} to select a parking lot road type? 'Cause I can't seem to find it. :-)
SuperDave1426
Country Manager
Country Manager
 
Posts: 866
Joined: Wed Oct 16, 2013 5:27 pm
Location: Nevada, USA
Has thanked: 79 times
Been thanked: 250 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby crazycaveman » Thu Feb 12, 2015 1:41 am

That is one thing I haven't figured out yet, but it would be useful.
crazycaveman
Country Manager
Country Manager
 
Posts: 710
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 248 times
Been thanked: 387 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby Raiden38 » Wed Feb 11, 2015 7:36 pm

Oh and last question. How do we make the report show our custom fields in a different area. (Red vs Yellow VS Blue)?
Raiden38
Area Manager
Area Manager
 
Posts: 314
Joined: Thu Jun 13, 2013 3:58 am
Location: Laval, Quebec, Canada
Has thanked: 128 times
Been thanked: 15 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby Raiden38 » Wed Feb 11, 2015 7:26 pm

Awesome, Thanks!!!!
Raiden38
Area Manager
Area Manager
 
Posts: 314
Joined: Thu Jun 13, 2013 3:58 am
Location: Laval, Quebec, Canada
Has thanked: 128 times
Been thanked: 15 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby crazycaveman » Wed Feb 11, 2015 7:10 pm

Here are some examples of custom checks, with some explanations. If you go to the validator settings and hover over the custom template field, you'll get a list of all the checks you can use, as well.
crazycaveman
Country Manager
Country Manager
 
Posts: 710
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 248 times
Been thanked: 387 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: bz2012