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 gylliegyllie
kid4rm90s wrote: Mon Mar 18, 2024 12:58 am
gylliegyllie wrote: Sun Mar 17, 2024 1:44 pm
MadanKPradhan wrote: Tue Mar 12, 2024 10:10 am Hello Team,

I am CC for Nepal. Could you please help us add the detail for our country.
  • Country Name : Nepal (NP)
  • Possible Speeds: [20,BGk], 30, 40, 50, 60, 70, 80
  • KPH
  • Default Sign
Thank you. Really appreciate your help.

 
 





 
Hi MadanKPradhan,

In the latest version 0.12.7 Nepal has been added.

Kind regards
Guillian




 
Thank you for adding Nepal. We have requested the speed sign "[20,BGk]" but at the script, it was added as [20,BGg] which shows different image than we have requested. Appreciate your help upon this. Thank you.
 
 
 

 
Hi,

Apologies for the delay, I fixed the sign in 0.12.8

Kind regards
Guillian
 
gylliegyllie
Posts: 15
Has thanked: 2 times
Been thanked: 10 times
Send a message

Post by gylliegyllie
Nimbus- wrote: Mon Mar 25, 2024 6:01 pm Hello,

Could Fiji please be added as well?
  • Country name: Fiji (FJ)
  • The list of possible speeds as displayed on the roadsigns: 20, 30, 40, 50, 60, 70, 80
  • Km/h
  • Default Sign
 

 
Hi,

Fiji has been added in version 0.12.9

Kind regards
Guillian
 
gylliegyllie
Posts: 15
Has thanked: 2 times
Been thanked: 10 times
Send a message

Post by Horizon911
Please add Pakistan:
120, 100, 80, 60, 50, 40 (kph)
Thanks.
Horizon911
Posts: 513
Has thanked: 279 times
Been thanked: 26 times
Send a message

Post by iainhouse
I've got an alternative suggestion for those wanting to set speed in one direction only. Whether this is possible or not, I don't know - just something to think about. ;)

How about detecting a "drag" event on the sign, as opposed to a click? If you can detect a drag event and a direction/distance, then a drag to the right on the speed icon would add an A->B speed; a drag to the left would add a B->A speed. You would probably need to check the length of the drag, to avoid detecting the normal, small errors in mouse control.

Anyway, I'd be surprised if as many as 1 in 1,000 segments worldwide have different speed limits in different directions. So whatever you feel able to for those asking for this, I'm sure they will appreciate it. ;)
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
It would be even better if you could do a conversion based on country and units selected by editor.

I always have my units set to metric, although the UK is imperial. Every time you update this script, I then alter it to multiply the applied speed by 1.6. Except when I forget. :lol:
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
gertbroos wrote:
iainhouse wrote:It would be even better if you could do a conversion based on country and units selected by editor.

I always have my units set to metric, although the UK is imperial. Every time you update this script, I then alter it to multiply the applied speed by 1.6. Except when I forget. :lol:
I can take a look to see if it's not too much extra work :)
I managed to make this work by modifying the addsign.onclick function:

Code: Select all

var conversionfactor=1.0;
if ( !Waze.model.isImperial && ABBR.ann[0]=='m') conversionfactor=1.609344;
if ( Waze.model.isImperial && ABBR.ann[0]=='k') conversionfactor=0.621371;
$("input[name=fwdMaxSpeed]").val(allowedspeed*conversionfactor).change();
$("input[name=revMaxSpeed]").val(allowedspeed*conversionfactor).change();
I notice that you have some countries with "kmh" and some with "kph". I'm not sure if that's deliberate, but I got round it by only testing the first character of the value.

I'm also indebted to Glodenox for locating the value for the user's settings. I was looking for that earlier this week, but couldn't find it!

Please note that my professional programming is mostly 20 years behind me and I used so many languages back then, I can never remember the right syntax for anything now! If I've done the above inefficiently or inelegantly, please feel free to laugh publicly at me before improving it. :D
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
kpouer wrote:Hi gertbroos, I noticed a strange problem in Algeria:
the speed are good, but when I click on one speed button, like 120, the value that is filled is 193. Like if the buttons were setting speeds in miles. Il Algeria it's all km/h ;)
thanks
You have your imperial/metric units set wrong. 120mph = 193kph. ;)

Probably (I'm too tired not to be sure it's not the other way round) you have your units set to metric, but the Algeria normal units are MPH.
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
It works fine at bypassing the "verify buttons", but there's an incorrect warning displayed:
sh1.png
One or more segments in your selection are disabled or above your editor level.
(16.28 KiB) Downloaded 480 times
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
You'll find plenty of primary street with unverified speed limits around here, if you want to test outside your area. :)
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season

Post by iainhouse
cw1998 wrote:Hi Gert,

Been thinking about how I can optimise my editing workflow, and I'm working on keyboard shortcuts at the moment. A neat feature addition for speedhelper, in my opinion, would be the ability to press a number on the keyboard to click the corresponding speed icon.

So if the speeds were 30, 40, 50, 60, 80... these would map to 1, 2, 3, 4, 5 on the keyboard etc.


Thanks!
Bear in mind that both Magic and Toolbox are already using the numbers 1-5 as keyboard shortcuts.
iainhouse
EmeritusChamps
EmeritusChamps
Posts: 11143
Answers: 1
Has thanked: 2173 times
Been thanked: 8188 times
Send a message
https://storage.googleapis.com/wazeoped ... c4/AGC.pnghttps://sign.waze.tools/s2000.pnghttps://sign.waze.tools/c6.png
My scripts: WME FixUI WME Presets :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season