Get a sneak peek at whats next for Permanent Hazards on our April 7th Office Hours!
Post by Twister-UK
Early results from the first bit of script-o-matic testing...

Routing from my old favourite, Games Lane in Cockfosters (51.65501626,-0.156668998) down to the B219 in Peckham Rye (51.45954977,-0.06766258), logging started at 23:00 yesterday, with the script requesting a recalculation of the route (approximately) every minute.

http://i1056.photobucket.com/albums/t37 ... a1cb84.png

This is a plot of the route distances (blue = quickest, red = shortest) against time. Where the plot background changes to yellow, this indicates results where the two routes differ in their endpoints. For each result, the shortest route always reached the requested endpoint, so differences in the endpoints are entirely due to the quickest route failing to reach that endpoint. Whilst checking the progress of the script this morning, I could see on the Livemap window that the quickest route was falling well short of the endpoint - there was clear space between the two endpoint marker flags. I could also see that, at one or more points along the route, Livemap was reporting heavy traffic, whereas when I kicked off the test last night the map was clear of traffic issues.

Interesting also to note that period between 01:00 and 02:30ish where the quickest route manages to shed around 10 miles yet still reach the destination correctly.

I left the script running this morning, so fingers crossed we should end up with a full 24-hour log of this route later tonight...
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4687 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Bit of GIMPing (doesn't sound nearly as cool as Photoshopping...) gives us a mapped out view of all the endpoints for the above data

http://i1056.photobucket.com/albums/t37 ... 5ce79c.png

The red dot shows the true endpoint (it appears I actually set it to a side road just off the B219, rather than the B219 itself...), and the blue dots show all of the incorrectly generated endpoints for the quickest routes within the yellow area of the earlier plot.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4687 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Twister_UK wrote:I left the script running this morning, so fingers crossed we should end up with a full 24-hour log of this route later tonight...
Sadly, script-o-matic Mk.1 was quickly hacked together in such a way that, if Livemap failed to return any routes, it'd require manual intervention to continue logging, and at just after 8am yesterday Livemap, not unexpectedly, failed to return any routes...

The all new and improved script-o-matic Mk.2 (cleans whiter than white, with 33% fewer calories, using the latest nanoparticle formulation) should now be able to resume logging automatically once valid routes are available again. It's been running on the same route since just before midnight yesterday, so at the very least I'll be able to compare the early morning results for two consecutive weekdays - be interesting to see if that 01:00-02:30 route shortening occurs again.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4687 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Too impatient to wait until after midnight to see the full set of results from today, so here's a sneak preview... Same start and endpoints as yesterday.

http://i1056.photobucket.com/albums/t37 ... 4b98b2.png

As with yesterdays testing, the shortest route always reached the intended endpoint (where Livemap returned routes), and its distance only varied slightly every now and again, so I haven't bothered plotting that one this time. The above plot concentrates on the quickest route results where, as we saw yesterday, things tend to go awry.

Once again, the yellow regions of the plot shows where the route fell short of the endpoint. Unlike yesterday, we now also have data to show where Livemap failed to return any results, these are the red regions. There's one very slender red region just after 08:00 (which pretty much coincides with when the logging fell over yesterday...), then a slightly wider region around noon, and then from just after 15:00 through to almost 19:00 the routing engine was almost entirely incapable of returning any routes - there's just that very brief period around 15:30 where a single incomplete route is generated... Once the routes start to be reliably generated again just before 19:00, they remain incomplete until just after 20:00 where they seem to return to normality again.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4687 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Full 24-hour results have now been processed...

http://i1056.photobucket.com/albums/t37 ... 35a827.png

As expected, beyond 20:00 nothing of interest occurred, with Livemap returning complete routes each time.

Of the 1440 routing requests placed, 554 resulted in incomplete routes and 214 resulted in no routes.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4687 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
And a plot of all the endpoints...

http://i1056.photobucket.com/albums/t37 ... 765133.png

Lots of similarities with the endpoint positions from the first test
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4687 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
dknight212 wrote:I've got an idea how it's done but am still amazed at the skill of some in the UK Waze community. Does anyone have any concerns that Waze HQ won't like calling the routing server so frequently?
You can thank Timbones, it's his Livemap navigation script I used as the basis for this one... And quite frankly, if Waze are concerned about one extra routing request per minute, then we've got more to worry about than the number of incomplete routes being returned.

I've now tweaked the script again to capture a bit of extra data based on some thoughts I had regarding the last set of results and why the fastest route might be falling short/failing entirely. Let's see what the next 24 hours brings us results-wise.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4687 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Last testing session ran into some Firefox hassles, preventing the full log from being saved. I did still get a complete 24 hour cycle, but this one runs from 16:00 on Monday to 16:00 on Tuesday, as opposed to the 00:00-00:00 logs of previous tests...

http://i1056.photobucket.com/albums/t37 ... 6d142c.png

"Quickest" results - pretty much business as usual here...


http://i1056.photobucket.com/albums/t37 ... 53d4ca.png

"Shortest" results - business unusual here though, for the first time the routing engine has started returning incomplete routes here too... Notice though how the incomplete routes are all longer, significantly so, than the complete ones - I wonder if there were some temporary road closures that morning, or could this have coincided with a mapping update?


http://i1056.photobucket.com/albums/t37 ... 85f9fd.png

Endpoint plot - red for quickest routes, blue for shortest and purple for where both types of route had the same endpoint. The black-ringed purple dot lower-left is the true endpoint.
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4687 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
Just noticed that in the request sent from livemap to the routing server, there's a timeout parameter which is set to 60000 (I'm assuming milliseconds). If I generate a modified request with a much shorter timeout parameter (<100) then I get an error response instead of the expected route. Given how long it can take the server to return results during the day, I wonder if the complete failures logged during my earlier testing were requests that timed-out before any routing results could be generated...
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4687 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png

Post by Twister-UK
I've just rewritten the routing tester in Delphi, which makes it easier to extract the data of interest as well as providing additional data not available to the scripted version and allowing the request parameters to be modified, so expect some more results to be provided over the next few days...
Twister-UK
Waze Local Champs
Waze Local Champs
Posts: 4671
Answers: 2
Has thanked: 736 times
Been thanked: 4687 times
Send a message
Chris (not to be confused with Chris or Chris, or even Tim, Stu, or any of the other champs team...)
AM SE England & Shetland Islands, UK Local Champ, WME Beta Tester & ScriptMangler
WME/Livemap enhancement scripts @ GreasyFork


https://chizzum.com/greasemonkey/images/beta.pnghttps://chizzum.com/greasemonkey/images/s0400.pnghttps://chizzum.com/greasemonkey/images/c5s.png