Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
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.
Post by skbun
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!
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
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
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
Meanwhile, oh boy, here we go. The WME beta is live. :)
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
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!
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
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.
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
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.
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
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.
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by skbun
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.
skbun
Posts: 425
Has thanked: 14 times
Been thanked: 30 times
Send a message
https://www.waze.com/wiki/images/2/2a/W ... 00k_5c.png

AM in SW Shasta, NW Tehama, Central Trinity Counties, CA; Mt Rainier Nat'l Park, WA

Post by Spil
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!"
Spil
Posts: 1320
Has thanked: 32 times
Been thanked: 26 times
Send a message
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!
https://www.waze.com/wiki/images/c/c8/W ... 00k_6c.png

Post by Spil
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).
Spil
Posts: 1320
Has thanked: 32 times
Been thanked: 26 times
Send a message
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!
https://www.waze.com/wiki/images/c/c8/W ... 00k_6c.png