[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 carloslaso » Mon Jul 20, 2015 8:24 pm

PesachZ wrote:FYI ferries (at least in the USA) are now using type 15

Same in México.
carloslaso
Global Champ Mentor
Global Champ Mentor
 
Posts: 2382
Joined: Fri Aug 20, 2010 1:30 am
Location: Sonora, Mexico
Has thanked: 1227 times
Been thanked: 1765 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby PesachZ » Sun Jul 19, 2015 1:52 pm

crazycaveman wrote:Here's an updated type list (not typerank):
${type}
Code: Select all
1:  Street
2:  Primary Street
3:  Freeway
4:  Ramp
5:  Walking Trail
6:  Major Highway
7:  Minor Highway
8:  Dirt Road / 4X4 Trail
9:
10: Pedestrian Boardwalk
11:
12:
13:
14: Ferry
15:
16: Stairway
17: Private Road
18: Stairway
19: Runway/Taxiway
20: Parking Lot Road
21: Service Road (deprecated)

FYI ferries (at least in the USA) are now using type 15
PesachZ
Wiki Master
Wiki Master
 
Posts: 4431
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC} {ARC}
Has thanked: 1992 times
Been thanked: 2253 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby dougp01 » Tue Mar 10, 2015 1:48 am

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!
dougp01
Map Raider
Map Raider
 
Posts: 93
Joined: Wed Jun 18, 2014 10:05 pm
Location: Larimer, Weld and parts of Boulder County Colorado USA
Has thanked: 36 times
Been thanked: 9 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby sketch » Fri Mar 06, 2015 6:42 pm

Yeah! Well done implementation. I realized that a month or two ago and have been using implementations like this:

${street}#${altStreet[#]}
/(^|#)US-167 [NS](#|$)/

But yours is even easier to use!
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6076
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1534 times
Been thanked: 2074 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby crazycaveman » Fri Mar 06, 2015 3:12 pm

So I just realized something with the ${altStreet[]} array that makes it a lot easier to code templates; I'm not sure if this is a general javascript thing or if anyone else uses this trick or has posted about it before. Whatever you put in the brackets is what separates the values, unless you put a number (obviously). So, if you set your template to
Code: Select all
#${street}@#${altStreet[@#]}@
for a street with the following properties:
Code: Select all
Name: Main St
Alt 0: US-321
Alt 1: SC-47
Alt 2: Downtown Ave

Validator will expand the check as follows:
Code: Select all
#Main St@#US-321@#SC-47@#Downtown Ave@

It doesn't add the separator before the first or last items in the array, so you still need to add a separator in the template, but I figured I'd share that as all the other examples I've seen have all the number added in manually, which can be tedious.
crazycaveman
Country Manager
Country Manager
 
Posts: 720
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 261 times
Been thanked: 392 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby sketch » Thu Mar 05, 2015 11:22 pm

carloslaso wrote:I think I have searched but I have found nothing about FW, MH and mH with city names, I tried some Regex and failed :?

You want to highlight every FW, MH, mH with a city name?

Code: Select all
${typeRank}:${city}
/1[3-5]:.+$/


1[3-5] == typeRank 13, 14, 15 are mH, MH, FW, respectively
: == separates typeRank from city
.+ == one or more of any characters
$ == end of string
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6076
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1534 times
Been thanked: 2074 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby carloslaso » Thu Mar 05, 2015 8:35 pm

I think I have searched but I have found nothing about FW, MH and mH with city names, I tried some Regex and failed :?
carloslaso
Global Champ Mentor
Global Champ Mentor
 
Posts: 2382
Joined: Fri Aug 20, 2010 1:30 am
Location: Sonora, Mexico
Has thanked: 1227 times
Been thanked: 1765 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby crazycaveman » Thu Mar 05, 2015 12:40 pm

Your elevation not ground regex should be !/0/, with the exclamation outside the forward slash, otherwise it will try to match a literal "!0"
crazycaveman
Country Manager
Country Manager
 
Posts: 720
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 261 times
Been thanked: 392 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby eaglejm7 » Wed Mar 04, 2015 8:03 pm

BellHouse wrote:
eaglejm7 wrote:I have been fighting an area of basemap recently and discovered that many of the segments have a blank elevation.

Just be sure you're not talking of the WME display bug, which makes elevation data sometimes not being displayed after editing a segment. A reload then usually brings back the elevation.

I have heard that there was a bug at one point that would actually save blank (null) into the DB. It will pick up both the real errors and the display bug. If you have just fixed a segment, it will display wrong. This is most useful for finding problems in an are that you have not started on yet.

elevation is blank ${elevation} /^null/

Elevation Not ground is ${elevation} /!0/
eaglejm7
Area Manager
Area Manager
 
Posts: 150
Joined: Fri Oct 31, 2014 3:05 pm
Has thanked: 79 times
Been thanked: 11 times

Re: [Script] WME Validator 1.1.6 / 06.01.2015

Postby SeZAKxing » Wed Mar 04, 2015 2:54 pm

Any change of getting 36 & 37 turned back on, but exclude one way roads?
(I assume they are disabled for the ABBA reverse direction issue)
SeZAKxing
Area Manager
Area Manager
 
Posts: 148
Joined: Wed Feb 26, 2014 3:05 pm
Location: Troy (near US15&I64), Virginia, USA
Has thanked: 49 times
Been thanked: 33 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: No registered users