[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.16 / 29.01.2016

Postby herrchin » Fri Apr 29, 2016 2:09 pm

If those are the names of the roads, then those are the names :) You wouldn't want to alter them to something else that isn't going to be matched by people searching for those roads.

I will caution that I know Waze TTS sometimes doesn't handle those perfectly or even guaranteed to be consistent (The "let's take blah blah" initial announcements vs. "turn right on blah blah" for example; sometimes those pronunciations can differ. I have an "A St" which is pronounced as both a long "A" sound and as "uh" depending on where Waze is using it).

"Fire route one ninety nine point one" and "Fire route one ninety nine one see" (no "point") are what I get on a quick test. I'd call that good enough for a Wazer to understand though.
herrchin
State Manager
State Manager
 
Posts: 254
Joined: Mon Jun 22, 2015 6:05 pm
Location: Lincoln, NE, USA
Has thanked: 187 times
Been thanked: 128 times

Re: [Script] WME Validator 1.1.16 / 29.01.2016

Postby jdelosa » Fri Apr 29, 2016 2:58 am

A quick reply but I'm not 100% on this.....
Validator highlights things that MAY be wrong. In this case that might be the correct nomenclature, so you might just have to skip over that. I have a few names that make mine light up and there correct.

But stick around..... Someone who is 100% sure will pop in shortly.... Thanks JD

Sent from my XT1080 using Tapatalk
jdelosa
State Manager
State Manager
 
Posts: 354
Joined: Mon Mar 09, 2015 10:05 pm
Location: Brooklyn, NY, USA
Has thanked: 226 times
Been thanked: 120 times

Re: [Script] WME Validator 1.1.16 / 29.01.2016

Postby dougp01 » Fri Apr 29, 2016 2:51 am

Hi all, I am seeking advice on "Incorrectly abbreviated street name"

I have a situation where the "." is an actual part of the road name. The Validator report result looks like this:

Fire Rte 162.12, No City
Fire Rte 199.1, No City
Fire Rte 199.1B, No City
Fire Rte 199.1C, No City
Forest Road 509.1, No City

Is there an alternative to this naming I can substitute?

thanks, Doug
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.16 / 29.01.2016

Postby Bill473 » Sun Apr 24, 2016 11:53 pm

Not just in theory, but in reality it's not an error. Obviously I didn't notice that unusual symbol.

(Thanks for pointing that out.)
Bill473
Area Manager
Area Manager
 
Posts: 197
Joined: Wed Jan 14, 2015 6:25 pm
Location: Richmond, Indiana USA
Has thanked: 112 times
Been thanked: 49 times

Re: [Script] WME Validator 1.1.16 / 29.01.2016

Postby Glodenox » Sun Apr 24, 2016 8:44 pm

In theory, that's not an error. ‰ stands for 'per mille' (per thousand). So 33‰ = 3.3%
But as this symbol isn't used that often, I also think it would be better to replace it with a percentage instead.
Glodenox
Map Raider
Map Raider
 
Posts: 404
Joined: Tue Aug 11, 2015 9:04 pm
Location: Belgium
Has thanked: 154 times
Been thanked: 493 times

Re: [Script] WME Validator 1.1.16 / 29.01.2016

Postby Bill473 » Sun Apr 24, 2016 3:04 pm

I love Validator and can't imagine editing without it.

There is an issue with the % calculations (which must have been pointed out before, but I didn't want to re-read the 177 pages of this thread...)

Total number of segments checked: 1912
Reported warnings — 64 (33‰)

That's really 3.3%

(Edited to add: As Glodenox kindly points out below, I didn't notice the difference between % and ‰. Sorry.)
Last edited by Bill473 on Sun Apr 24, 2016 11:55 pm, edited 1 time in total.
Bill473
Area Manager
Area Manager
 
Posts: 197
Joined: Wed Jan 14, 2015 6:25 pm
Location: Richmond, Indiana USA
Has thanked: 112 times
Been thanked: 49 times

Re: [Script] WME Validator 1.1.16 / 29.01.2016

Postby Glodenox » Sat Apr 23, 2016 8:31 am

I've found that the issue is located somewhere in the initialization of the script. It waits for a user login, even though there is already a user logged in. By executing the following bit of code I'm able to make Validator appear again on Firefox:
Code: Select all
Waze.loginManager.events.triggerEvent('login');

In the shape of a bookmarklet that gives:
Code: Select all
javascript:Waze.loginManager.events.triggerEvent('login');

So I'm guessing (as I can't read the source code) that the check for a logged in user is incorrect or that the state listener is added too late.

Personally I'm using this code to trigger when the user has logged in and this seems to work fine:
Code: Select all
    if (typeof Waze === 'undefined' ||
        typeof Waze.loginManager === 'undefined') {
      setTimeout(init, 100);
      return;
    }
    if (!Waze.loginManager.hasUser()) {
      Waze.loginManager.events.register("login", null, init);
      Waze.loginManager.events.register("loginStatus", null, init);
      if (!Waze.loginManager.hasUser()) {
        return;
      }
    }

EDIT: oh wait, it seems I also have another check before I can actually access the tabs (to add a tab or manage them):
Code: Select all
    var tabs = document.querySelector('#user-tabs .nav-tabs');
    if (!tabs) {
      setTimeout(init, 400);
      return;
    }
Glodenox
Map Raider
Map Raider
 
Posts: 404
Joined: Tue Aug 11, 2015 9:04 pm
Location: Belgium
Has thanked: 154 times
Been thanked: 493 times

Re: [Script] WME Validator 1.1.16 / 29.01.2016

Postby turbomkt » Sat Apr 23, 2016 4:50 am

I'm going to assume FF changed something that broke it since the script hasn't been updated since January.
turbomkt
Waze Mentor
Waze Mentor
 
Posts: 409
Joined: Thu Jan 22, 2015 1:05 am
Location: San Diego, Ca
Has thanked: 233 times
Been thanked: 106 times

Re: [Script] WME Validator 1.1.16 / 29.01.2016

Postby whatdoesthisdo » Fri Apr 22, 2016 8:26 pm

Glad to know it is not just me. I had it very briefly once (on a WME load) but since have not seen it.

Edit: On Firefox 45.0.2
whatdoesthisdo
 
Posts: 7
Joined: Mon Dec 02, 2013 2:20 am
Location: Pennsylvania, USA
Has thanked: 3 times
Been thanked: 0 time

Re: [Script] WME Validator 1.1.16 / 29.01.2016

Postby SpencerFG » Fri Apr 22, 2016 6:49 pm

I haven't had a problem with this script, but in the past uninstalling the script and re-installing it solved the problem.
SpencerFG
 
Posts: 138
Joined: Thu Mar 12, 2015 10:05 pm
Location: Virginia, Southern California USA
Has thanked: 41 times
Been thanked: 16 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: Exabot [Bot], Mythdraug, ramblinwreck_81