[Script] Highlights for Segments & Landmarks - v1.5 Nov 16

The place to get information and ask questions about everything to do with properly and successfully editing the Waze Map.

Use this forum for all general editing questions, and the sub-forums for specific types of Waze Map Editor features.

Moderators: Unholy, Unholy

Re: [Script] Highlights for Segments & Landmarks - v1.4.2 Oc

Postby skbun » Sun Nov 04, 2012 9:00 pm

Timbones wrote:My bad. Hold tight while I go find the right code.

...okay, try it again now (same version number).


Yes yes!! Definite progress!

Additional feedback on what I see now, if you'd like it...
* Based on https://www.waze.com/editor/?zoom=3&lat ... TTTFTTTTFT - The last on the city list is 'Washington, Washington'. Basically, 'If any city is in view, the last on the list is 'State, State', which always has 0 segments.' Conversely, if you are too far away from any city, the pulldown doesn't bring up anything at all. I wonder if this might be restructured somehow so that the last entry either doesn't show up, or actually means 'No city, <STATE>' (or internationally, 'No City, No City'. That could even mean eliminating the gray no city color, since this will do the same job!

I love what this permalink is showing:
https://www.waze.com/editor/?zoom=3&lat ... TTTFTTTTFT
(Also shows a case of 'Michigan, Michigan, United States'. Probably the thing above.)

Is it possible to highlight any such found roads regardless of zoom level? (I have this feeling that WME itself restricts what can be polled based on zoom level, but if not, boy would it identify smeared cities and countries fast)

Loving this sneak peek, Tim!
Image

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA
skbun
US Waze Champs
US Waze Champs
 
Posts: 424
Joined: Sun May 06, 2012 12:27 am
Location: Seattle/Tacoma WA
Has thanked: 27 times
Been thanked: 46 times

Idea for dropdown display?

Postby skbun » Mon Nov 05, 2012 8:41 am

Preface: This is only a suggestion. It feels like it would maximize the useful information here and helps single out flaws, but it may be a nightmare of loops. Just want to put it out there as a possibility.

* List all cities, including 'No city' if applicable. As now, if state and country are identical, they do not need to be printed.
* If the 'state' field is undefined (blank) for all polled segments, do not print the state field at all. If there are 2+ countries and the state field is defined in at least one, print all three: city, state, country.
* If the states are different and the country is the same for all polled, the country does not need to be printed.
* (On the fence about this, but could help debug issues?) At the end of any of these cases, append the CityID unless it's for 'No City'.

Examples:
(Assume State for all is Washington, but there is 1+ Canada country segment).
Algoma, Washington, United States (20051)
Federal Way, Washington, United States (45994)
Black Diamond, Washington, Canada (44221)
NO CITY, Washington, United States

(Assume States mixed between Washington and Oregon. Country same for all.)
Algoma, Washington (20051)
Federal Way, Washington (45994)
Federal Way, Oregon (66554)
NO CITY, Washington

(No state field in ANY segment, null or whatever - probably a typical Intl server case)
Algoma, United States (20051)
Federal Way, United States (45994)
Black Diamond, Canada (92344)
NO CITY, United States

(2+ states, where 'NONE' is counted as one, different countries visible)
Algoma, NO STATE, United States (20051)
Federal Way, Washington, United States (45994)
Black Diamond, Washington, Canada (92344)
NO CITY, Washington, United States

(2+ states, where 'NONE' is counted as one, all same country)
Algoma, Washington (20051)
Federal Way, NO STATE (66446)
Black Diamond, Washington (22445)
NO CITY, Washington
Image

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA
skbun
US Waze Champs
US Waze Champs
 
Posts: 424
Joined: Sun May 06, 2012 12:27 am
Location: Seattle/Tacoma WA
Has thanked: 27 times
Been thanked: 46 times

Re: [Script] Highlights for Segments & Landmarks - v1.4.2 Oc

Postby skbun » Mon Nov 05, 2012 5:29 pm

Meanwhile, oh boy, here we go. The WME beta is live. :)
Image

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA
skbun
US Waze Champs
US Waze Champs
 
Posts: 424
Joined: Sun May 06, 2012 12:27 am
Location: Seattle/Tacoma WA
Has thanked: 27 times
Been thanked: 46 times

Re: [Script] Highlights for Segments & Landmarks - v1.4.2 Oc

Postby skbun » Wed Nov 07, 2012 4:04 pm

Timbones wrote:A few changes to my latest beta version (v1.4.6)

  • Show both states and countries when near border (thanks skbun)
  • Highlight nodes on main roads that have revcon or selfcon (experimental)
I'm considering re-including the 'measles' to the trunk of this script.

Let me know how you get on with it...


At. A. Glance. I can nail revcon and selfcons on the large roads instantly. This is -awesome-, Tim. Thank you!
Image

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA
skbun
US Waze Champs
US Waze Champs
 
Posts: 424
Joined: Sun May 06, 2012 12:27 am
Location: Seattle/Tacoma WA
Has thanked: 27 times
Been thanked: 46 times

Re: [Script] Highlights for Segments & Landmarks - v1.4.2 Oc

Postby skbun » Thu Nov 08, 2012 3:19 am

I did a little hacking around myself, today...I created a chunk of code which I submitted to Tim - he can decide whether to include it or not. Since we now know that it is completely possible to have segments with multiple cities in them...

The purpose of my code block is to check Alt streets in addition to primary ones, for city names (or lack thereof). It means that if a segment has two or more cities ('No city' also meaning a 'city'), it'll get highlighted for ANY matched, not just the primary.
Image

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA
skbun
US Waze Champs
US Waze Champs
 
Posts: 424
Joined: Sun May 06, 2012 12:27 am
Location: Seattle/Tacoma WA
Has thanked: 27 times
Been thanked: 46 times

Re: [Script] Highlights for Segments & Landmarks - v1.4.2 Oc

Postby skbun » Thu Nov 08, 2012 7:32 pm

Wajo357 wrote:I'm loving the script. I'm still getting used to it. Thank you!.

Quick question: I always assumed that Waze stored road speed based on time of day and road speed to go straight or make a turn (based on the navigation routes I would get). However, when I select a segment, it just shows the average speed for that segment. So is this information telling me I was wrong with my assumption?


I think this might be a useful read for you:

http://www.waze.com/wiki/index.php/How_ ... tes_routes

Meantime...'average' A-B and B-A speeds is an easily pulled data chunk from a segment, so Tim said 'Sure, let's put it in'. Real time data and 'Time of day data' is not, so far as I know.
Image

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA
skbun
US Waze Champs
US Waze Champs
 
Posts: 424
Joined: Sun May 06, 2012 12:27 am
Location: Seattle/Tacoma WA
Has thanked: 27 times
Been thanked: 46 times

Re: Re: [Script] Highlights for Segments & Landmarks - v1.5

Postby skbun » Thu Jan 10, 2013 7:50 pm

Timbones wrote:
Timbones wrote:I've put in a minor tweak to only show cities that are actually being used on streets: Beta v1.5.6
Might give unexpected results if zoomed out. Please provide feedback...

Anyone tried this yet? Any cities appearing in the list that shouldn't, or vica versa? Hoping to push this to a public release soon...

via mobile


Slightly unrelated note, but I do wonder how much of a pain in the butt this would be...do you suppose, if the landmarks layer is visible, that we can add in the 'highlight landmarks' that stuff with a given city gets yellow, or striped, bold border, or...something? Since this is already clearly becoming a pain and many editors don't realize landmarks influence the dropdowns if that layer is on.

I'm guessing that that code would only have to run if 'highlight landmarks' is checked, AND a city is checked. I don't know as much about that section of code to know if it's viable, though.
Image

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA
skbun
US Waze Champs
US Waze Champs
 
Posts: 424
Joined: Sun May 06, 2012 12:27 am
Location: Seattle/Tacoma WA
Has thanked: 27 times
Been thanked: 46 times

Re: [Script] Highlights for Segments & Landmarks - v1.5 Nov

Postby skbun » Thu Jan 10, 2013 7:57 pm

As to the 'show only...' cities part, it looks like it's working. It's possible to select lower class segments here and there at zoom level 3 (even though highlighter won't list them or their cities), but that's just because of how WME renders streets. You can just tell people this:

'No cities will be scanned for at zoom 0 or 1.'
'Freeways and highways will have their cities checked at zoom 2 and 3.'
'All segments in view will have their cities shown at zoom 4 and above.'
'Landmarks are not checked for their city regardless of zoom level'.

But I don't seem to be able to crash it by zooming in and out, anyway.
Image

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA
skbun
US Waze Champs
US Waze Champs
 
Posts: 424
Joined: Sun May 06, 2012 12:27 am
Location: Seattle/Tacoma WA
Has thanked: 27 times
Been thanked: 46 times

Re: Script to add Highlights for Segments & Landmarks - v1.0

Postby Spil » Fri Aug 31, 2012 6:40 am

I've been testing this script for a couple of weeks now, and it's revealing a lot of things that need fixing in areas that I thought looked pretty good on the surface. Kudos to Tim (and Brian & Alan also) for creating this method of showing what WME would be capable of doing if it had been programmed by people who knew what it needed to do. :P "Don't edit Rome (or anywhere else!) without it!"
I'm Spil, and I approve this message! :D
~ ~ AM: Upstate NY; CM: USA/Canada ~ ~
Wazing the I-86 Corridor with my Casio C771 G'zOne Commando
New York Editors: To-Do List!
Image
Spil
Waze Global Champs
Waze Global Champs
 
Posts: 1320
Joined: Sat Jul 16, 2011 12:11 pm
Location: Upstate NY, USA
Has thanked: 107 times
Been thanked: 29 times

Re: Script to add Highlights for Segments & Landmarks - v1.0

Postby Spil » Tue Sep 04, 2012 6:53 am

Laurentwb wrote:One of the feature that can be very useful is the possibility to highlight unterminated roads because it allows to highlight connection problems.
However, it is currently not fully operational as it not really the original purpose (which is to highlight unterminated roads olny).

A suggestion would be to have an additional option to highlight roads which are connected on one side only or on no side at all?

If I'm reading you correctly, this is exactly what the "highlight unterminated roads" option does. If there is a road segment that is not connected to a junction at one or both of its ends, then it gets colored a lovely lime green by this function. :)

If you're talking about road segments that are connected to a junction that has no other road segments attached to it ... well, that's a different story. It probably could be done, but I'm not sure how valuable that would be as an editing guide (since it would flag all properly-represented dead-end streets as potential problems :o).
I'm Spil, and I approve this message! :D
~ ~ AM: Upstate NY; CM: USA/Canada ~ ~
Wazing the I-86 Corridor with my Casio C771 G'zOne Commando
New York Editors: To-Do List!
Image
Spil
Waze Global Champs
Waze Global Champs
 
Posts: 1320
Joined: Sat Jul 16, 2011 12:11 pm
Location: Upstate NY, USA
Has thanked: 107 times
Been thanked: 29 times

PreviousNext

Return to Waze Map Editor

Who is online

Users browsing this forum: No registered users