[Script] WME BDP Check

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.

[Script] WME BDP Check

Postby dBsooner » Fri Dec 06, 2019 6:11 pm

WME BDP Check

Version: 2019.12.06.02

Greasyfork: https://greasyfork.org/en/scripts/393407-wme-bdp-check

Description: This script assists in determining if the BDP penalty could be applied to a selected route OR if there is a direct route between two selected segments that matches the BDP criteria for a direct route.

Instructions:
  1. Decide if you are checking for a direct route between two bracketing segments or for a full BDP check for a selected detour route (with bracketing segments).
    1. If between only two segments: Select the two bracketing segments in direction of travel.
    2. If checking a possible detour route (with 2 bracketing segments) for full BDP criteria: Select the entire route starting with the first bracketing segment and finishing with the second bracketing segment.
  2. Then in the side panel, you will see "BDP Check (WME)" and "BDP Check (LM)". Click one of those buttons to initiate the checks.

More info:
The script will first check to ensure all the following criteria are met before looking for a direct route:
  • Two or more segments are selected. (Two segments = bracketing segments should be selected)
  • If more than two segments are selected, the selection must be continuous. (Possible detour route is selected)
  • Both bracketing segments are mH, MH or FW.
  • Both bracketing segments are in the same road type group (either both mH OR both MH or FW) (bracketing segment road type group continuity)
  • The bracketing segments share a name among their primary or alternate names (bracketing segment name continuity).
If a "possible detour route" is selected (a continuous selection of 3 or more segments) the following additional criteria must be met before looking for a direct route (FULL BDP CHECK):
  • The last detour segment (2nd to last selected segment) does not share a name with the 2nd bracketing segment (last selected segment). (Detour route must have name discontinuity between these two segments)
  • The last detour segment (2nd to last selected segment) is not in the same road type group as the 2nd bracketing segment (last selected segment) (Detour route must have road type group discontinuity between these two segments)
  • There are at least 3 selected segments. (A detour route cannot be less than 3 segments)
  • The detour route is (without bracketing segments) is less than 500m for mH bracketing segments OR 5km for MH-FW bracketing segments.
This script can check for direct routes via two methods:
  • One method is via LiveMap. This will query the LiveMap for a route or routes from the LiveMap between the selected bracketing segments. If a route or routes are returned, the script will verify if one of the returned routes matches all the criteria to be a DIRECT ROUTE between the two bracketing segments.
  • The other method is via WME segments. This is a more thorough and in-depth test. The script itself will walk through each segment and node trying to build a direct route between the two bracketing segments. The script will test each possible segment-node-segment turn to see if the following criteria are TRUE:
    1. The turn is allowed
    2. The sOut shares a name with the sIn (segment to segment name continuity)
    3. The sOut shares a name with one of the two bracketing segments (sOut to bracketing segments name continuity)
    4. The sOut is in the same road type group as the bracketing segments (RTG continuity)
    5. The length of the potential route (route built + sOut length) is less than 5km for mH bracketing segments for 50kM for MH-FW bracketing segments.
    If any of the 4 fail, it's an invalid route and the script keeps processing until it's exhausted all it's options. This all happens VERY QUICKLY (less than a second), so don't worry about being afraid of using it.

Developers: dBsooner through WazeDev

Feature list:
  • Checks for possible direct routes between two selected bracketing segments.
  • Checks for possiblity of BDP penalty being applied to a selected detour route (with bracketing segments selected) (if all the criteria for BDP are met -- FULL BDP CHECK).

Changelog:
Code: Select all
2019.12.06.01: CHANGE: Initial release.


Screenshots:
[ img ]
Last edited by dBsooner on Fri Dec 06, 2019 9:15 pm, edited 2 times in total.
[ img ][ img ][ img ][ img ][ img ]
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• AT&T | iPhone XS Max | iOS 13.5.1 | Waze Latest Beta
dBsooner
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 651
Joined: Thu Oct 31, 2013 10:53 pm
Location: Tulsa / Broken Arrow, Oklahoma, US
Has thanked: 382 times
Been thanked: 385 times

Re: [Script] WME BDP Check

Postby dBsooner » Fri Dec 06, 2019 9:10 pm

Officially released!
[ img ][ img ][ img ][ img ][ img ]
• AM: Eastern Oklahoma, DFW, Southern Florida
• Wiki: WME | Editing Manual | Best Practices | FAQ | Places
• AT&T | iPhone XS Max | iOS 13.5.1 | Waze Latest Beta
dBsooner
Map Editor - Level 5
Map Editor - Level 5
 
Posts: 651
Joined: Thu Oct 31, 2013 10:53 pm
Location: Tulsa / Broken Arrow, Oklahoma, US
Has thanked: 382 times
Been thanked: 385 times

Re: [Script] WME BDP Check

Postby dspille » Fri Dec 06, 2019 9:22 pm

Awesome! Can't wait to try this out.
Thanks,
dspille
Country Manager, Multi-State Manager - South Central Region

SCR Wiki
[ img ][ img ][ img ][ img ][ img ]
dspille
Country Manager
Country Manager
 
Posts: 416
Joined: Sat Mar 12, 2016 11:05 pm
Location: Texas, USA
Has thanked: 542 times
Been thanked: 151 times

Re: [Script] WME BDP Check

Postby jm6087 » Fri Dec 06, 2019 9:21 pm

jm6087
Global Champ Mentor
Global Champ Mentor
 
Posts: 5262
Joined: Wed Jun 17, 2015 10:05 pm
Location: Lone Star State, Hook 'em Horns
Has thanked: 868 times
Been thanked: 2272 times

Re: [Script] WME BDP Check

Postby juliansean » Sun Dec 08, 2019 5:03 pm

Once again, my friend, nice work producing a script we sorely need in the SCR!

Sean
Sean Julian
CM
SM: TX, LA, MS, AR, OK
AM: SE FL, Boston, MA, Brooklyn, NY, Bronx, NY, Manhattan, NY, Queens, NY, E CA, SW KS

[ img ][ img ][ img ][ img ][ img ]
juliansean
Country Manager
Country Manager
 
Posts: 1223
Joined: Mon Jul 04, 2016 3:33 am
Has thanked: 459 times
Been thanked: 352 times

Re: [Script] WME BDP Check

Postby Olestas » Sun Jan 31, 2021 6:19 pm

Wanted to check it, what is the process? Or it is not working?
[ img ][ img ][ img ][ img ]
[size=100]
GC: Latvia
Coordinator: Latvia
Olestas
Coordinators
Coordinators
 
Posts: 6512
Joined: Wed Mar 09, 2011 7:08 pm
Location: Latvia
Has thanked: 3702 times
Been thanked: 2411 times

Re: [Script] WME BDP Check

Postby Paulvdwyn » Fri Jan 15, 2021 6:06 pm

Is this script still working?
Paul Van den Wyngaert
Country Manager Belgium
[ img ]
Paulvdwyn
Waze Local Champs
Waze Local Champs
 
Posts: 99
Joined: Wed Apr 10, 2019 11:34 am
Location: Belgium
Has thanked: 51 times
Been thanked: 25 times

Re: [Script] WME BDP Check

Postby tcalvert317 » Wed Dec 11, 2019 11:58 pm

This looks like fun.
tcalvert317
 
Posts: 116
Joined: Sun Apr 14, 2019 3:55 pm
Has thanked: 15 times
Been thanked: 21 times

Re: [Script] WME BDP Check

Postby tenetienne » Wed Dec 11, 2019 5:48 am

Wow! Thanks! Looking forward to testing.
Edits to avoid
[ img ] [ img ][ img ]


iPhone 12 Pro 14.4.2 ~ MBP 11.2.3 Big Sur 16" 2.4GHz i9 64G RAM
tenetienne
Area Manager
Area Manager
 
Posts: 124
Joined: Tue Jun 30, 2015 4:58 pm
Location: Marlborough, MA
Has thanked: 132 times
Been thanked: 36 times

Re: [Script] WME BDP Check

Postby willdanneriv » Fri Dec 06, 2019 10:34 pm

Cool, can't wait to try it out!
Thanks for your hard work.
willdanneriv
US Waze Champs
US Waze Champs
 
Posts: 225
Joined: Fri Mar 07, 2014 5:31 am
Location: Stuart, FL, USA
Has thanked: 214 times
Been thanked: 151 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: jm6087