[Script] WMEMagic

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] WMEMagic

Postby dbcm » Wed Jul 24, 2019 3:26 pm

V170 is out.

ignores viltual nodes on segments intersect plugin
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 634
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 285 times
Been thanked: 693 times

Re: [Script] WMEMagic

Postby dbcm » Fri Jul 26, 2019 2:06 am

Hi guys,
as it's possible to route through those segments (i check if the routing is possible, green arrows) and as they are longer than 16 meters (i've added this check now), Magic will complain.

Simplifying these road to a single segment with both directions is what we are doing in Portugal and everything is simple for the editors and for wazers.

pcbman, on your example, the middle segment doesn't have a name, so it's complicated to add extra checks on that scenario :(

I'm open to suggestions


V172 is out for grabs :)
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 634
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 285 times
Been thanked: 693 times

Re: [Script] WMEMagic

Postby dbcm » Sat Jul 27, 2019 11:59 pm

Hi gang, i've release v173. LMK if you still find false positives.
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 634
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 285 times
Been thanked: 693 times

Re: [Script] WMEMagic

Postby dbcm » Mon Sep 02, 2019 7:41 pm

Mvan231 wrote:It would be a great setting for Magic if it could turn off above (or below? zoomed out) a certain zoom level


Magic does that on some plugins. You'll see that some are turned off
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 634
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 285 times
Been thanked: 693 times

Re: [Script] WMEMagic

Postby dbcm » Mon Sep 02, 2019 7:43 pm

Version 175 with minor stuff, mostly

- Added support for Belarus and Macau countries
- Added Russian language

For Belarus and Russian, alex_miami will do the magic.

Macau is with me
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 634
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 285 times
Been thanked: 693 times

Re: [Script] WMEMagic

Postby dbcm » Wed Sep 18, 2019 6:33 pm

Hi gang, Magic will be able to complain (if configured), if a specific roadType with toll is not protected correctly.

As toll prices are hardwired with segment IDs, those segments should not be deleted.
In Portugal we are protecting those segments with L6.

Below is our example. We are protecting freeways and ramps
seg_lockrank:freeway_roads_toll seg_lockrank freeway_roads_toll TRUE 6 HL if not rank locked
seg_lockrank:ramp_roads_toll seg_lockrank ramp_roads_toll TRUE 6 HL if not rank locked
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 634
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 285 times
Been thanked: 693 times

Re: [Script] WMEMagic

Postby dbcm » Sat Sep 21, 2019 8:34 pm

Today i found out a very strange behavior.

ME: Hey, i found out a new bug on Magic.

Looking closer, and doing a lot of debug, it was actually a feature.

Looks like there were a geometry segment really close to the node.


Screen Shot 2019-09-21 at 21.08.26.jpg
(222.92 KiB) Downloaded 282 times


Screen Shot 2019-09-21 at 21.09.17.jpg
(48.25 KiB) Downloaded 294 times


Screen Shot 2019-09-21 at 21.09.28.jpg
(74.36 KiB) Downloaded 283 times
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 634
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 285 times
Been thanked: 693 times

Re: [Script] WMEMagic

Postby dbcm » Sat Sep 21, 2019 9:08 pm

Screen Shot 2019-09-21 at 22.05.38.jpg
(216.34 KiB) Downloaded 303 times


Related with my previous post. Looks like a geometry node is over a segment connection node.
W.selectionManager.getSelectedFeatures()[0].geometry.components[0].distanceTo(W.selectionManager.getSelectedFeatures()[0].geometry.components[1])
0


Magic will complain if the distance between geometry nodes is smaller than 1m.

LMK if you find any false positives.

WME Magic v179
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 634
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 285 times
Been thanked: 693 times

Re: [Script] WMEMagic

Postby dbcm » Sat Sep 21, 2019 9:47 pm

jm6087 wrote:I have found the same "bug" myself on several occasions.

I have learned to dig deeper if I can't find something obvious :D



Now that Magic complains, I'm finding several ones.

Well, extra points for the community. :)
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 634
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 285 times
Been thanked: 693 times

Re: [Script] WMEMagic

Postby dbcm » Sun Sep 22, 2019 12:01 am

hummmm....

https://www.waze.com/editor?env=row&lon ... lor=0F0F0F


Screen Shot 2019-09-22 at 00.59.47.png
(99.56 KiB) Downloaded 295 times



#WME SlackNotifier
It's so Magic™ | Y U N0 W0RK? ¯\_(ツ)_/¯
dbcm
Coordinators
Coordinators
 
Posts: 634
Joined: Mon Feb 08, 2010 12:25 pm
Location: Berlengas, Portugal
Has thanked: 285 times
Been thanked: 693 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: Mythdraug