[Script] WME Junction Angle Info

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.

Moderators: Unholy, bextein, Glodenox, JustinS83

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Re: [script] WME Junction Angle Info

Postby milkboy » Fri Oct 03, 2014 5:54 am

Some progress yes. Hope to have something ready for alpha testing today =)

EDIT: Remove typos that happen when writing messages while feeding a child at the same time
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 123 times

Re: [script] WME Junction Angle Info

Postby milkboy » Fri Oct 03, 2014 12:16 pm

milkboy wrote:Some progress yes. Hope to have something ready for alpha testing today =)

The master branch on GitHub now has something to play with. Mostly it displays a pale blue for turn angles <=44, a gray for 44-46 and the "normal" green otherwise. It also tries to determine if the junction has another possible turn <44, in which case it should show up as green.

Oh, and I added configuration options, so the color coding of angles is disabled by default, and the colors are configurable =)

Still to be done:
- keep/exit logic (needs to start checking segment types etc)
- alt names checking etc for the above point
- roundabout support (needs quite a bit of work I'm afraid)

EDIT:
P.S. Also added decimal option (this one is for you PesachZ)
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 123 times

Re: [script] WME Junction Angle Info

Postby milkboy » Fri Oct 03, 2014 1:48 pm

brandonrossl wrote:I'd like to add a request that a best continuation/no instruction color be used as well for those times where it's super confusing.

This is looking to be one of the most useful plug-ins! Great job!

Yeah. It's work in progress ;) Probably won't have much time to do anything until next week though :(
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 123 times

Re: [script] WME Junction Angle Info

Postby milkboy » Mon Oct 06, 2014 5:33 am

Mmmmm.. Got something to think about with the best continuation.. As there might be one-way or otherwise restricted turns in one direction, but not the other, how should that be handled? Would there have to be two separate markers, or just use the order in which the segments were selected to choose driving direction? The latter one is "easy" while the former may be a bit complicated.. Will probably go with the latter one at least for now, but it could probably use some indication of driving direction.. Mostly just thinking out loud here =)
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 123 times

Re: [script] WME Junction Angle Info

Postby milkboy » Mon Oct 06, 2014 10:40 am

PesachZ wrote:Milkboy, thanks now I can use the master branch. Is there a way to install from gut hub, or I have to copy code into a custom script?


Not actually sure.. Currently pretty much using copy-paste with Tampermonkey while developing =/ Probably not the best solution. Anyway, auto-updating from the GitHub repo is probably a bad idea also, as committed version might actually be very much untested ;)
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 123 times

Re: [script] WME Junction Angle Info

Postby milkboy » Mon Oct 06, 2014 2:56 pm

PesachZ wrote:Oh well, I'm using the 1.6 master from github, but I'll wait for an official release to report any bugs then.

I will say though the 'regular turn' color is activated at 44° instead of the gray area color.


Fixed that today, but then again there are also other issues with the latest commits. Hope to have something semi stable in a few hours. Working on the best continuation logic :)
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 123 times

Re: [script] WME Junction Angle Info

Postby milkboy » Mon Oct 06, 2014 7:15 pm

Meh. Ran into some javascript version issues. need to rewrite some code to be more compatible, and some of the logic requires a bit more effort to actually be useful, but getting closer. Need some sleep now though =/ Will continue tomorrow...
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 123 times

Re: [script] WME Junction Angle Info

Postby milkboy » Tue Oct 07, 2014 10:00 am

Oooookayyyy... This is only for the brave who won't mind risking their browser crashing, house catching fire and possibly causing a nuclear meltdown, you can try this 1.6-alpha1 version.

It's kindof working (with my very limited testing), and also the logic might still be quote incorrect, as I still need to clarify a few points with PesachZ.

Anyway, feel free to comment (and naturally fix) any bugs, and if sh*t happens for real, give some debug info ;P

You might want to turn up debugging level to 2 (or even 3) to watch the best continuation logic debug output in the console

EDIT: Known issues:
  • Roundabout support not yet available
  • Segment type checking incomplete
  • Angles >44 may not be correctly filtered out
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 123 times

Re: [script] WME Junction Angle Info

Postby milkboy » Tue Oct 07, 2014 12:45 pm

milkboy wrote:Oooookayyyy... This is only for the brave who won't mind risking their browser crashing, house catching fire and possibly causing a nuclear meltdown, you can try this 1.6-alpha1 version.


Meh. Found lots of small issues, and fixed some: alpha2

Same known issues still apply though

EDIT: Oh, and having >2 possible continuations with angle less than 44 will also not work (yet)
EDIT2: Added "<" and ">" to the angle to indicate left vs right turn|exit|keep (not visually appealing, , but should work until something better is implemented)
Last edited by milkboy on Tue Oct 07, 2014 12:56 pm, edited 2 times in total.
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 123 times

Re: [script] WME Junction Angle Info

Postby milkboy » Tue Oct 07, 2014 12:49 pm

brandonrossl wrote:Likewise on the thanks! I'm a Chrome user so let us know when to start clicking the update extensions button!

:ugeek: Well.. Need to gather a little more feedback and do quite some testing before updating the addon. I don't want to break the existing functionality either..
milkboy
Map Editor - level 3
Map Editor - level 3
 
Posts: 107
Joined: Thu Jun 09, 2011 6:24 am
Location: Europe/Finland/Helsinki
Has thanked: 11 times
Been thanked: 123 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: Google [Bot], jm6087, Mythdraug