[Script] WME Enhanced Search

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, JustinS83, Glodenox

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 Enhanced Search

Postby JustinS83 » Fri Mar 29, 2019 5:52 pm

WME Enhanced Search

Version: 2019.04.08.02

Greasyfork: https://greasyfork.org/en/scripts/38111 ... ced-search

Description: First I want to give props to Sebiseba and WME Bookmarks for having developed the functionality to do some of this years ago. I loved this functionality but found that I never used the rest of the Bookmarks script so I thought I could do something in a stand alone script and add more functionality since it isn't tied into other features & wouldn't complicate another script.

This script enhances the WME search box by allowing you to paste or drag-and-drop URLs, segment IDs, Place IDs, mapComment IDs, etc. into the search box and it be automatically parsed to move to the location specified in the URL and select any objects that may exist (if it is a WME PL).

Note:The first time you paste into the search box with this script active Chrome will prompt you to ask if you want to allow waze.com to access the clipboard. You must allow this for the script to work. It does not allow the script to do anything nefarious - just access the data you are pasting into the search box.

What is currently supported for parsing on paste:
  • WME PLs
    • Will jump to the coordinates in the PL
    • Will set the zoom to the zoom in the PL
    • Select any item in the PL: segments, Places, mapComments, URs, MPs
  • Livemap PLs
  • Google Maps URLs
  • Bing Maps URLs
  • OpenStreetMap URLs
  • What3Words URLs (https://w3w.co/wounds.client.face)
    • The three word code only will be parsed, too (wounds.client.face)
  • Plus.codes URLs (https://plus.codes/86FQ9J4V+6C)
    • Plus.codes pasted directly (86FQ9J4V+6C)
  • Mandrillapp urls
  • Segment IDs
  • Place IDs

If the segment or venue not found on screen, it is looked up via Segment Finder (thank you Joyriding!) and jumps to the location (if found) and selects them.

Regular expression highlighting of segments and Places is also possible! See this post for more information. Along with the highlighting a display of how many segments and Places were found with the given regular expression will display. Clicking on these displays will select all of those segments or Places. See this post for more information.

A blue border is placed on the search box to indicate the script is installed and running.
[ img ]


Changelog:
Code: Select all
2019-04-08 - 2019.04.08.02 - Venue search by ID (when off screen) now works for ROW and IL.
2019-04-02 - 2019.04.02.02 - Adding support for finding segments in ROW and IL when the segment ID is pasted directly and they are not on screen
2019-04-02 - 2019.04.02.01 - A display for how many segments and Places are found with the supplied regex search now displays when searching.  Clicking on either of these will select all of the highlighted segments/Places.
2019-04-01 - 2019.04.01.01 - Added regular expression highlighting for segments and Places (primary and alt names)
2019-03-29 - 2019.03.29.02 - Initial release!
Last edited by JustinS83 on Tue Apr 09, 2019 3:04 am, edited 11 times in total.
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1310
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 335 times
Been thanked: 2328 times

Re: [Script] WME Enhanced Search

Postby Kartografer » Fri Mar 29, 2019 5:58 pm

Thanks! I was just thinking today about how it would be nice to have something like this.
[ img ]
Galaxy S9 running Pie on Mint
SM Ohio, AM New Mexico, South Dakota
Wazeopedia projects
Then you will know the truth, and the truth will set you free.
-John 8:32
Kartografer
Wiki Master
Wiki Master
 
Posts: 1089
Joined: Wed Dec 23, 2015 2:32 pm
Location: Westerville, Ohio, USA
Has thanked: 482 times
Been thanked: 711 times

Re: [Script] WME Enhanced Search

Postby itzwolf » Fri Mar 29, 2019 7:06 pm

This is awesome, thank you Justin!
Southeast Assistant Regional Coordinator
US Local Champ / US Country Manager
Partnerships Coordinator

SER Wiki | SER Discord Chat

[ img ][ img ][ img ][ img ][ img ][ img ]
itzwolf
Coordinators
Coordinators
 
Posts: 1066
Joined: Tue May 19, 2015 2:05 am
Location: Jacksonville, FL
Has thanked: 1113 times
Been thanked: 205 times

Re: [Script] WME Enhanced Search

Postby santyg2001 » Fri Mar 29, 2019 10:03 pm

Thanks, great script. Awesome. :ugeek: :mrgreen:

--
[ img ][ img ][ img ][ img ]
Santiago
LaSallista - #300lasalle.
santyg2001
Area Manager
Area Manager
 
Posts: 217
Joined: Tue Dec 18, 2012 8:17 pm
Has thanked: 77 times
Been thanked: 75 times

Re: [Script] WME Enhanced Search

Postby JustinS83 » Mon Apr 01, 2019 8:44 pm

Update released - 2019.04.01.02

Regular expression (regex) highlighting is now possible! With regex highlighting your searches must start and end with '/'. Example: /McDonald's/
If you want your search to be case insensitive you can append the 'i' flag to the end: /mcdonald's/i

This will search all segments and Places checking both the primary and alternate names.

The search item must be at least two characters long.

The highlighting color right now is a light orange - if this is too difficult to see I may adjust (no you are not getting a configuration for the highlight color).

Examples:

This will highlight any segment or Place that has "oo" in the name (no, I don't know why you would want to do this)
[ img ]

Maybe you know someone incorrectly abbreviated "Way" to "Wy" in a specific area and you want to quickly highlight them (this will highlight all segments/Places that end with "Wy")
[ img ]

Or you want to find all of the roads with state route names to make sure they meet the minimum FC classification
[ img ]

None of the examples really use the power of regex customization, but they demonstrate how it can be very easy to type in something in a second or two rather than setting something up in another script, or painfully searching manually.
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1310
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 335 times
Been thanked: 2328 times

Re: [Script] WME Enhanced Search

Postby JustinS83 » Tue Apr 02, 2019 3:48 pm

Update released - 2019.04.02.01

A display for how many segments and Places are found with the supplied regex search now displays when searching. Clicking on either of these will select all of the highlighted segments or Places.
[ img ]
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1310
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 335 times
Been thanked: 2328 times

Re: [Script] WME Enhanced Search

Postby MapOMatic » Tue Apr 02, 2019 6:19 pm

:tears_of_joy_emoji:

(Edit: when will be able to customize the highlight color? I know you said something like "when hell freezes over", but I think that leaves a lot of room for interpretation.)
[ img ] [ img ]

AM Central KY | CM USA
MapOMatic
Country Manager
Country Manager
 
Posts: 339
Joined: Sat Jul 16, 2011 11:43 am
Location: Lexington, KY
Has thanked: 224 times
Been thanked: 633 times

Re: [Script] WME Enhanced Search

Postby JustinS83 » Tue Apr 02, 2019 7:30 pm

Update released - 2019.04.02.02

Added support for changing the highlight color.

Just kidding. Not adding that.

For realsies:
Adding support for finding segments in ROW and IL when the segment IDs are pasted directly into the search box and they are not on screen
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1310
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 335 times
Been thanked: 2328 times

Re: [Script] WME Enhanced Search

Postby iainhouse » Wed Apr 03, 2019 1:08 am

How about creating a script for the forum that automatically clicks the "thanks" button when I open one of your script topics to find you've released yet another update? All that clicking on a little icon is hard work. :lol:
[ img ][ img ][ img ]
UK AdminsUK WikiWaze FAQWMEFU Script :ugeek:
I want to go to a commune in Vermont and deal with no unit of time shorter than a season
iainhouse
Country Manager
Country Manager
 
Posts: 9892
Joined: Mon Jul 23, 2012 5:16 pm
Location: on the road from London to insanity, with Waze HQ in the driving seat
Has thanked: 2539 times
Been thanked: 7889 times

Re: [Script] WME Enhanced Search

Postby jm6087 » Wed Apr 03, 2019 1:13 am

iainhouse wrote:How about creating a script for the forum that automatically clicks the "thanks" button when I open one of your script topics to find you've released yet another update? All that clicking on a little icon is hard work. :lol:



Maybe a script that makes the "thumbs up" icon 10 times lager :D


Edit: I mean larger :lol:
jm6087
US Waze Champs
US Waze Champs
 
Posts: 3200
Joined: Wed Jun 17, 2015 10:05 pm
Location: Texas
Has thanked: 538 times
Been thanked: 1294 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: jangliss, Larryhayes7, Mythdraug