[Script] WME Roundabout Angles

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

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 Roundabout Angles

Postby voludu2 » Tue Nov 21, 2017 2:29 pm

In addition, I receive the following error in the console when I attempt to run this script:

Code: Select all
 Uncaught TypeError: Cannot read property 'layers' of undefined
    at DrawRoundaboutAngles (eval at <anonymous> (:2:479), <anonymous>:112:30)     VM230:112

This line is:
Code: Select all
I18n.translations.en.layers.name["__DrawRoundaboutAngles"] = "Roundabout Angles"

ImageUSA Northeast Region Discord Chat
State Manager - Pennsylvania
Country Manager - USA and Thailand
Wiki Master, Global Mentor
utilitas, simplicitas, retentionis
voludu2
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 2594
Joined: Thu Jul 24, 2014 12:33 pm
Location: Chester County, Pennsylvania
Has thanked: 580 times
Been thanked: 927 times

Re: [Script] WME Roundabout Angles v1.04

Postby sketch » Tue Oct 21, 2014 6:56 pm

Indeed, angles don't matter if there are 5 or more connecting segments, right? I'm not 100% on the criteria for the "nth exit" roundabouts but I think that's one of them.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • usa country manager • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
Image Image
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6151
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1616 times
Been thanked: 2162 times

Re: [Script] WME Roundabout Angles v1.04

Postby sketch » Thu Jul 24, 2014 11:44 pm

kentsmith9 wrote:The feature description says for typical roundabouts. I see it does not work for roundabouts with 5 connected segments. Is that an planned fix, or no intent. I'm only asking to clarify the current limitations so people don't ask. Maybe add a "known limitations" in the original post to prevent the question.

For roundabouts with 5+ connected segments, I suppose the angles are irrelevant. It'd be nice – and I suppose this is a feature request – if it was able to number the exits from a selected segment as they would be numbered by Waze.
ALL US EDITORS READ: New USA road type guidance
assistant regional coordinator • south central region • usa
waze global champ • usa country manager • new orleans
2017 chevrolet ss sedan 6mt • slipstream blue metallic
Image Image
sketch
Waze Global Champs
Waze Global Champs
 
Posts: 6151
Joined: Sat Aug 08, 2009 6:13 pm
Location: New Orleans, LA
Has thanked: 1616 times
Been thanked: 2162 times

Re: [Script] WME Roundabout Angles

Postby PesachZ » Sun Oct 26, 2014 3:49 pm

the original post has been updated with this info. Thanks doctorkb
ImageImageImageImageNYImageImageImageImageImageImage
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum
PesachZ
Wiki Master
Wiki Master
 
Posts: 4466
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC} {ARC}
Has thanked: 1992 times
Been thanked: 2299 times

Re: [Script] WME Roundabout Angles v1.04

Postby PesachZ » Sun Oct 26, 2014 2:43 pm

I added this script into the wiki as well here Community Plugins, Extensions and Tools#WME Roundabout Angles

Sent using Tapatalk for Android 4.4.2
ImageImageImageImageNYImageImageImageImageImageImage
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum
PesachZ
Wiki Master
Wiki Master
 
Posts: 4466
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC} {ARC}
Has thanked: 1992 times
Been thanked: 2299 times

Re: [Script] WME Roundabout Angles v1.04

Postby PesachZ » Sun Oct 26, 2014 2:23 pm

OK here goes, I will try to get this updated shortly to the OP.
The WME Roundabout Angles script can help in designing normal roundabouts.

It draws angles for typical roundabouts and overlays a round helper line to adjust the geometry of a roundabout.
The script provides guidance based on the rules described in the roundabouts wiki page.

The original authorship of the script is by wlodek76, who decided to leave the Waze community (hopefully, not forever...).
The rights for further maintenance of the script have been granted by the original author to FZ69617.

The script is currently hosted at GreasyFork:
https://greasyfork.org/scripts/5400-wme-roundabout-angles


Brief instructions:
  • Activate the script by enabling the "Roundabout Angles" layer in WME
  • The default is inactive, therefore the script will always be off when you reload WME. It must be activated again each time its needed (after reloading WME).
  • The script will automatically find all roundabouts visible on the map - pan and / or zoom the map, if it doesn't find them.
  • Angles will only be displayed for roundabouts with four or less nodes. The other roundabouts will still display the round helper line in a slightly different color, together with a line to the first three nodes, but no angles will be displayed.
ImageImageImageImageNYImageImageImageImageImageImage
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum
PesachZ
Wiki Master
Wiki Master
 
Posts: 4466
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC} {ARC}
Has thanked: 1992 times
Been thanked: 2299 times

Re: [Script] WME Roundabout Angles v1.04

Postby PesachZ » Fri Oct 24, 2014 2:44 pm

How about this, what do you think?
The WME Roundabout Angles script can help in designing normal roundabouts.

It draws angles for typical roundabouts and overlays a round helper line to adjust the geometry of a roundabout.
The script provides guidance based on the rules described in the roundabouts wiki page.

The original authorship of the script is by wlodek76, who decided to leave the Waze community (hopefully, not forever...).
The rights for further maintenance of the script has been granted by the original author to FZ69617.

The script is currently hosted at GreasyFork:
https://greasyfork.org/scripts/5400-wme-roundabout-angles

Brief instructions:
  • Activate the script by enabling the "Roundabout Angles" layer in WME
  • The default is inactive, therefore the script will always be off when you reload WME. It must be activated again each time its needed (after reloading WME).
  • The script will automatically find all roundabouts visible on the map - pan and / or zoom the map, if it doesn't find them.
  • Angles will only be displayed for Normal Roundabouts (four or less nodes). Not normal roundabouts will still display the round helper line in a slightly different color, and a line to the first three nodes, but no angles will be displayed.




Sent using Tapatalk for Android 4.4.2
ImageImageImageImageNYImageImageImageImageImageImage
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum
PesachZ
Wiki Master
Wiki Master
 
Posts: 4466
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC} {ARC}
Has thanked: 1992 times
Been thanked: 2299 times

Re: [Script] WME Roundabout Angles v1.04

Postby PesachZ » Wed Oct 22, 2014 2:29 pm

Arnoniem wrote:Thanks for the 4 answers ;)
I did read about the 5 connections but wasn't aware that it was actually 5 nodes and that a split entry/exit wouldn't work.
I guess we'd have to invent a mapcat-bowtie-ish roundabout to fix that. (But that wouldn't work without using the same node or creating an extra segment :D)

send from my SGS4, using Tapatalk

Two regular segments connecting to the same roundabout node, is bad for routing. Instead use half a bowtie, with a short extra segment connected to the roundabout.

Sent using Tapatalk for Android 4.4.2
ImageImageImageImageNYImageImageImageImageImageImage
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum
PesachZ
Wiki Master
Wiki Master
 
Posts: 4466
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC} {ARC}
Has thanked: 1992 times
Been thanked: 2299 times

Re: [Script] WME Roundabout Angles v1.04

Postby PesachZ » Wed Oct 22, 2014 2:26 pm

FZ69617 wrote:
Arnoniem wrote:A small tip, could you put the latest download link, in the opening post? That makes it easier to find, especially if this thread grows longer ;)

Unfortunately, I cannot do that - opening post has been deleted, and any changes to currently opening post can be performed by its author, or forum moderator.

Arnoniem wrote:A question, I get 2 different layouts on roundabouts. One not showing the angles, the other does. Can you explain?

Seems to be already answered. :)
In short, the primary intent of the script is to help in designing "normal" roundabouts - as explained there:
https://wiki.waze.com/wiki/Roundabouts/ ... structions

All roundabouts that are not eligible to become normal are being drawn using a dark blue circle that goes through the first three nodes, without any attempt to measure the angles - it helps to find the roundabouts on the map, but has nothing in common with a primary intent of the script.

If you reply to this post with what you would want in the opening post, we can then move it there

Sent using Tapatalk for Android 4.4.2
ImageImageImageImageNYImageImageImageImageImageImage
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum
PesachZ
Wiki Master
Wiki Master
 
Posts: 4466
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC} {ARC}
Has thanked: 1992 times
Been thanked: 2299 times

Re: [Script] WME Roundabout Angles v1.04

Postby PesachZ » Wed Oct 22, 2014 1:12 am

sketch wrote:Indeed, angles don't matter if there are 5 or more connecting segments, right? I'm not 100% on the criteria for the "nth exit" roundabouts but I think that's one of them.

Correct.

More than 4 nodes,

OR

Any node is not within ±15° of a multiple 90° from the approach node.

*Though there are some some documented roundabouts which don't follow these rules, so there may be other criteria too.

Sent using Tapatalk for Android 4.4.2
ImageImageImageImageNYImageImageImageImageImageImage
Formal Mentoring, Wiki
Useful Wiki pages
URs & etiquette | WME | Editing Manual | Quick-Start Guide | Best Map Editing Practices | Junctions
State specific Wiki | Forum
PesachZ
Wiki Master
Wiki Master
 
Posts: 4466
Joined: Mon Jul 01, 2013 12:51 am
Location: NY, USA (also NJ sometimes) {GC} {ARC}
Has thanked: 1992 times
Been thanked: 2299 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: BenEnmen, Michelle-S, sketch