[Script] WME Reduced Speed Checker

Hi everyone!

I’m happy to share a script that I have been developing for the last month. The purpose is to show the “Reduced speed warning” signs in the editor.

Based on my experience, these warnings somtimes appear when the speed limit is incorrect or when an intermediate speed limit that reduces the speed more gradually is missing.

Feel free to test it and send some feedback so I can improve it or fix any errors.

Useful info:

  • Available languages: English, Spanish, Catalan, Galego, Euskera and Portuguese (@linguasaltitante).
  • Speed limit signs are European-style, and the script only works in km/h.
  • In the config tab, you can show/hide the signs or change the min zoom level from which they are displayed.

(See links and screenshots below)


¡Hola a todos!

Me alegra compartir un script que he estado desarrollando durante el último mes. Su función es mostrar los avisos de “Advertencia de velocidad reducida” en el editor.

Según mi experiencia, estas advertencias a veces aparecen cuando el límite de velocidad es incorrecto o cuando falta un límite de velocidad intermedio que reduce la velocidad de forma más gradual.

Espero que os sirva de ayuda y estoy abierto a recibir feedback para mejoras, sugerencias o errores.

Información útil:

  • Idiomas disponibles: Inglés, Español, Catalán, Gallego, Euskera y Portugués (@linguasaltitante).
  • Las señales de límite de velocidad son estilo europeo, y el script solo funciona en km/h.
  • En la pestaña de configuración, se puede mostrar/ocultar las señales o cambiar el zoom mínimo desde el cual se muestran.

(Consulta los enlaces y capturas de pantalla a continuación)


Download link and more information: WME Reduced Speed Checker
PM to test it: https://waze.com/es/editor?env=row&lat=39.63382&lon=2.74025&zoomLevel=19

Disclaimer: the screenshot is taken using this script and WME Color Speeds

PD: Special thanks to @IsidreAuto and @parallrob for testing the beta of this script and sending feedback.

12 Likes

I haven’t troubleshooted it yet, so I can’t provide more detailed information. However, I stopped using this script because it caused me to lose elements of the map.

  1. I lost the segment that I drew and needed to refresh WME a few times to bring it back.
  2. I lost the right-side controls (layer button, refresh button, permalink button, ruler button, GSV button, and zoom button).

Sorry if my description isn’t helpful.

Hello @AndyLaode !
Are you talking about WME Reduced Speed Checker or WME Color Speeds?

The first one is my script and it shouldn’t have the bug you comment. The second one… WME Color Speeds is a script from another user that I personally use and I think is really useful to use along with my script, but it has nothing to do with me.

If you indeed are talking about WME Reduced Speed Checker… can you please provide more information? A PM to the area you have seen the bug, your editor language, other scripts that you use (maybe they interfere)… I also remind you that at the moment the script is only working with Metric system (km/h).

I’ve also updated the original post with a PM to test the script (https://waze.com/es/editor?env=row&lat=39.63382&lon=2.74025&zoomLevel=19). You should see a speed sign there indicating that the app will show a reduced speed warning there.

Please let me know if the issue persist and, if so, provide more information and I will investigate it.

Thanks for your feedback!

Hello

Thank you for this script :blush:

In a node where you have 3 segments or more, the probability to have different speeds is high.

For instance, in these cases we are being alerted to reduced speed, what I think shouldn’t happen.

If you think that this should be the case, maybe an option for the user to turn on/off such cases may be useful.

Best regards

Hello @linguasaltitante !
Thanks for testing the script.

I understand what you are saying but you are seeing the alert in the editor because if you make a route there, you indeed will get the alert in the app (see screenshot below).

If you see the alert in the editor it means that, in a node, there is at least 1 possible route that will display the alert in the app (if there is more than 1, the min speed limit will be displayed in the alert). Then it’s the editor’s work to actually determine which is the route that will show the alert (checking speed limits) and decide if it’s correct.

I have tested a lot of scenarios and I think the results are consistent. It doesn’t matter if there is a turn indication, the alert will keep showing in the app. If you actually want to know when this alerts are shown in the app, you can read the GreasyFork description of the script. Waze doesn’t provide this information, I have collected it using trial/error.

PD: Also, keep in mind that this alerts just show in the app the first time you navigate through them. Then you have to wait for X days until the alert is shown again.

1 Like

Hello

You are right: those alerts will always appear on such situations in Waze.

But having in mind the description on your script - «Este script ayuda a detectar estos errores.» - I would say that maybe you can go a little further :sweat_smile: :blush:

As is, your script will always show those situations where the reduced speed happens. But, maybe(!?) … and maybe only, you can try to “actively” identify the “real” errors.

I know that the situation I describe below will not always result in a real error, but … a situation where you have the following conditions can be a serious candidate for being an error:

  • 3 consecutive segments +
  • same road type +
  • same address +
  • the middle segment falls inside that reduce speed criteria
    (In this middle segment, maybe the option to define the maximum segment length of it would be helpful, in order to try to prevent false positives. Also, it could be an option for the user to change as he wants.)

By identifying such situations, maybe you could mark them with a different icon :man_shrugging:

Sorry for the (eventual) extra work :sweat_smile:

I will think about the suggestion you propose because I don’t want to fall into making the script “too personal”. For now, it only shows real data (as far as I know) and your suggestion includes something to actually detect if there is an error. But again, it’s pretty “personal”.

I will think about it and I will gather more information from other users to see if we can make something “for everyone”.

Again, thanks for testing it :slight_smile:

1 Like

We’ve discussed privately and the two scripts are completely different but judging by the screenshot it can seem pretty similar.

@luan_tavares_127 has asked to delete his comment since the info was mistaken :slight_smile:

Yes. I made a mistake :sweat_smile:

1 Like

Hello.

I’m not fully aware of all the conditions that will trigger this alert in Waze (sorry for that).

To try to better understand it, can you please clarify if this error will be triggered when we are at a cross road, and you are specifically instructed to turn right or left!? I don’t remember to ever been alerted to a “reduced speed” when I’m instructed to turn right or left!

I’m asking this in continuation to the example on my first post, where you see that all the reduced speed happens when you turn right/left!

Personally, I do not agree that this alert should be shown when we change direction as a result of a turn … but this is my opinion only and I know that this isn’t something related to your script (but Waze only).

Thank you in advance

Hello again @linguasaltitante , as I said in a previous comment, I’ve checked a lot of scenarios and yes, the alert will show in Waze even if there is a turn right/left.

Don’t get me wrong, it’s also weird to me, but that’s how it works. You can try to create a route there and if you zoom in that cross road, you will see the warning.

If you want to know all the scenarios I’ve tested you can have a look at the script description in GreasyFork.

PD: The example you provide in a real route:

1 Like

Thank you for your explanation.

I was only trying to know if such scenario was also a valid one … and at any moment I doubted of your incredible research work :wink:

Hehehe, thanks! If you find any new scenario, please let me know! I will be more than happy to update my script.

Bonjour. Merci. Idée looking good :slight_smile:

Have you tried adding this line. I am testing the script with clean WME and the WazeWrap is missing.

// @require https://update.greasyfork.org/scripts/24851/1558013/WazeWrap.js

It looks like it does not use any WazeWrap functions, so the check for wazewrap ready in checkWazeReady could be removed. (And then you would not add the require wazewrap line.)

1 Like

Hello @JanKlaaseen .
@daveacincy is completely right, I don’t use any WazeWrap functions in my script (so I don’t need to import WazeWrap). The thing is that I check if WazeWrap is ready (which I shouldn’t do) and the script throws an error.
I’ve released v1.5.1 with the bug fix.

Thanks to both for reporting the error!, I have more scripts installed and some of them use WazeWrap so I didn’t see the error.

Sorry for the inconvenience :slight_smile:

1 Like

Hey @carlosveny, I am getting this in Firefox and then saving behaves weirdly.

The screen dims, it does save the edits, but then while it’s dimmed I can see the elements as they were before the edits. It requires a tab refresh to become useable again.

image

Hello, I’ve been having this issue for weeks and I didn’t know it was because of my script. Do you have a way to replicate the error? In my case, sometimes it happens but I can’t find a pattern.
Also, if you disable the script, does the error not happen?

Correct. I turned it off when I realised earlier today, and haven’t had the issue since.

I’ve got a suspicion it happens when you connect two existing segments, but I’m not getting consistent results when trying to reproduce :confused: