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.
Post by jdtech4u
I just downloaded this script tonight. I can only get one route to display at a time also.
jdtech4u
Map Raider
Map Raider
Posts: 37
Has thanked: 22 times
Been thanked: 15 times
Send a message
Ike
JDTech4U
Northwestern Pennsylvania

Post by JimboBaggins1966
MapOMatic and tonestertm,
Thanks very much for adding the ability to support passes/permits. As someone who's primary editing area which has several of these routes, I highly appreciate this.
Thanks!
JimboBaggins1966
Area Manager
Area Manager
Posts: 126
Has thanked: 338 times
Been thanked: 43 times
Send a message

Post by JustinS83
uscwaller wrote:Bug....it calculates the time of the route, but does not highlight the route
I am not able to reproduce the issue you mention.
Screenshot - 1_11_2017 , 8_51_37 AM.jpg
(52.33 KiB) Downloaded 1094 times
JustinS83
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
Olestas wrote:MapOMatic / JustinS83
the script is not doing anything on WME language interfaces other than English.. can you fix this?

For example Latvian or Russian interfaces

Spams console with error
Uncaught TypeError: Cannot read property 'layers' of undefined
at loopWMERouteSpeeds (eval at <anonymous> (:2:297), <anonymous>:1846:23)
loopWMERouteSpeeds @ VM303:1846
As a test, lines 815-820 & 844 start with:

Code: Select all

I18n.translations.en
Try replacing the above with this

Code: Select all

I18n.translations[I18n.currentLocale()]
and let me know if this fixes your problem.

The end result should look something like this:

Code: Select all

I18n.translations[I18n.currentLocale()].layers.name["__DrawRouteSpeeds1"] = "Route Speeds";
JustinS83
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
BellHouse wrote:
EDIT: Oops, sorry for the double post. Seems I was a bit too slow. ;)
Always good to have someone else that knows the fix, though :)

MapOMatic will be publishing the fix for this shortly.
JustinS83
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
hmarian wrote:MapOMatic and others...

Is there a minimum distance between the two selected segments, in order to receive more than one route?
I get 2 or more route when the segments are far from one another and only one, when they are close, although there is more than one valid route.
This script is merely using the routing engine to determine the routes. Just like if you were to use livemap or the app, if your start and end are too close the routing engine will only have one route that it determines is the best.
JustinS83
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
hmarian wrote:
JustinS83 wrote:This script is merely using the routing engine to determine the routes. Just like if you were to use livemap or the app, if your start and end are too close the routing engine will only have one route that it determines is the best.
I appreciate the answer.
If this is the case, could you or someone else explain the context of 4th and 5th "Alternative routes", which are not available in LiveMap (max 3 are shown).
The same question goes to the "try more" option. How is this functioning.
I didn't write this script, but from reading the code it looks like it is requesting the routes from livemap and there is an option for how many routes to receive. Livemap must be limiting the number of routes to a max of 3 whereas this script allows showing as many as it receives (doesn't always receive as many as it requests).
JustinS83
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
Olestas wrote:Entering livemap link to A field does not seem to simulate livemap route.. any ideas?
Can you provide the livemap PL, please?
JustinS83
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
Olestas wrote:
JustinS83 wrote:
Olestas wrote:Entering livemap link to A field does not seem to simulate livemap route.. any ideas?
Can you provide the livemap PL, please?

Here
https://www.waze.com/livemap/?zoom=15&l ... t_text=Now
It looks like you have a malformed PL. Routespeeds looks for "livemap?" to determine if it needs to do livemap PL routing, but in your link it is "livemap/?".

I don't see where this extra forward slash is coming from - when I generate the route PL it does not contain the slash.
JustinS83
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message

Post by JustinS83
Olestas wrote:Very strange.. I don't know how it was done.. probably person, who gave me the link, typed it like that?
Could be. I don't see any harm in covering this case as well, though.
JustinS83
Waze Global Champs
Waze Global Champs
Posts: 1463
Has thanked: 215 times
Been thanked: 2389 times
Send a message