[Script] Live Map UR Layer v2.24 (20160202)

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.

Moderator: Unholy

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] Live Map UR Layer v2.24 (20160202)

Postby Twister-UK » Wed Oct 17, 2012 6:15 am

This is a first stab at hacking together a UR/map problems layer for the Waze livemap view. This version is intended for users to test the core functionality required in such a layer - namely the ability for a third-party script to retrieve UR/problem data from the Waze server when no such data is already present on the page, and to then display it somehow over the existing map view.

After installation, you should see a new checkbox at the bottom of the Live Map window, titled "Update Requests". Tick this box to activate the script. Once active, the script monitors for any movement/zooming of the live map view, and requests the current UR/problem data from the Waze server for the area being viewed. The locations of any received URs are then plotted on the map as a small red/blue box (map problems are not plotted at present).

The Waze servers will not return any data for an area wider or taller than 1 degree of lat/lon, so if the livemap is zoomed out too far the script will only retrieve data for the central area. The area in which data is being requested should show up as a translucent yellow box.

Note that the Waze server will only return data if there is a logged-in user, and the data returned is filtered according to the editable areas assigned to that user - this script cannot display ALL the URs/problems in a given area, ONLY those that the logged-in user would be able to edit.


Firefox+Greasemonkey version: https://greasyfork.org/scripts/1948-livemap-ur-overlay
Chrome Web Store version: https://chrome.google.com/webstore/deta ... niefljookp
Last edited by Twister-UK on Tue Feb 02, 2016 11:45 pm, edited 44 times in total.
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1912
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 253 times
Been thanked: 1489 times

Re: Proof of Concept script: UR layer in Live Map

Postby Twister-UK » Wed Oct 17, 2012 11:50 am

A few improvements for the 0.2 proof of concept release

* should now work on the NA server as well as the world one
* prompts users to log-in if they aren't already
* now shows map problems as green dots

Note - the script will only be activated if you are using the secure live map server - if you do not see the checkbox at the bottom of the live map window, you're probably on the non-secure server...

http://userscripts.org/scripts/show/150276
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1912
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 253 times
Been thanked: 1489 times

Re: Proof of Concept script: UR layer in Live Map

Postby Timbones » Wed Oct 17, 2012 12:05 pm

Nice work, Twister - it works quite nicely. :)
Timbones(6) • UK Coordinator • Forum Moderator • Global Wiki Moderator • Routing Expert
Extensions: WME Colour HighlightsWME Route TesterWME Geometries
Timbones
Coordinators
Coordinators
 
Posts: 6407
Joined: Wed Feb 09, 2011 10:33 am
Location: York, UK
Has thanked: 836 times
Been thanked: 2363 times

Re: Proof of Concept script: UR layer in Live Map

Postby foxitrot » Wed Oct 17, 2012 12:41 pm

I was positively surprised that you've indeed tunneled the UR data through ;)
I have even found one fresh generated Map Problem - not seen for ages :-)
Works really nicely for a proof of concept!
...with the good old crashing :roll: Symbian 2.1.99.114 (N-E52), while
trying to get used to the good new social Android 4.0.xx.yyy (OP-X LOL-a-popp).
foxitrot
Waze Global Champs
Waze Global Champs
 
Posts: 6571
Joined: Thu Jul 14, 2011 10:22 pm
Location: Slovakia
Has thanked: 1882 times
Been thanked: 850 times

Re: Proof of Concept script: UR layer in Live Map

Postby iainhouse » Wed Oct 17, 2012 12:56 pm

foxitrot wrote:I have even found one fresh generated Map Problem - not seen for ages :-)


Slight thread hijack - sorry! I've seen loads of them over the last few days. Looks like the drought is over - now fix them quick before IGN jumps in! ;)
UK Country Administrator
AM: London (DELETED), S Wales
Waze 3.7.3 • iPhone 4S (iOS 6.1.3) • Chrome/W7x64
ImageImage
UK WikiWaze FAQ
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: 6357
Joined: Mon Jul 23, 2012 5:16 pm
Location: on the road from London to insanity
Has thanked: 984 times
Been thanked: 3191 times

Re: Proof of Concept script: UR layer in Live Map

Postby bgodette » Wed Oct 17, 2012 8:08 pm

Image
ImageImage
bgodette
Waze Global Champs
Waze Global Champs
 
Posts: 3361
Joined: Wed Jul 06, 2011 8:19 pm
Location: Denver, CO
Has thanked: 101 times
Been thanked: 474 times

Re: Proof of Concept script: UR layer in Live Map

Postby pvaladares » Thu Oct 18, 2012 7:10 pm

Hello!

Very nice proof of concept.
I would suggest to add also cameras with pending approval in a different colour (green?)


Sent from my LT18i using Tapatalk 2
Image
Country Manager for Portugal | Champ | Expert Android and others
Area Manager for Luanda (Angola) and Macau (China)
Forum PT | Wiki PT | Facebook PT | Twitter PT
pvaladares
Waze Local Champs
Waze Local Champs
 
Posts: 927
Joined: Sun Jun 24, 2012 6:05 pm
Location: Portugal
Has thanked: 78 times
Been thanked: 159 times

Re: Proof of Concept script: UR layer in Live Map

Postby Twister-UK » Sun Nov 04, 2012 12:49 am

V0.3 now shows the users managed and editable areas - since the UR and problem data is only returned within these areas, displaying them on the livemap makes it clearer whether or not an area is genuinely devoid of problems or simply appears so because you don't have editing rights there...

http://userscripts.org/scripts/show/150276
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1912
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 253 times
Been thanked: 1489 times

Re: Proof of Concept script: UR layer in Live Map

Postby pvaladares » Sun Nov 04, 2012 1:08 am

BUG:
Now I get more frequently the error message "Could not possible to connect to the UR server".

Suggestion:
It would be great if you could add a link to each red square so we could easily open the UR in the editor (something like the already existing UR in the editor) ;)
Image
Country Manager for Portugal | Champ | Expert Android and others
Area Manager for Luanda (Angola) and Macau (China)
Forum PT | Wiki PT | Facebook PT | Twitter PT
pvaladares
Waze Local Champs
Waze Local Champs
 
Posts: 927
Joined: Sun Jun 24, 2012 6:05 pm
Location: Portugal
Has thanked: 78 times
Been thanked: 159 times

Re: Proof of Concept script: UR layer in Live Map v0.4

Postby Twister-UK » Sun Nov 04, 2012 12:57 pm

Thanks for the bug report, 0.4 should now have solved that problem... In fixing that error, I've also resolved the problem where the editable area would appear and disappear if you were panning across certain parts of the map at certain zoom levels.

Linking the UR/problem markers to WME is my long-term intention for this script, but I don't want to rush into this until I'm happy that the foundations of the code are OK, hence all of these proof of concept versions.

http://userscripts.org/scripts/show/150276
L4 AM for NW London and Shetland Islands - HTC One M8/Android 5.0.1
Waze App 3.9.9.0, not about to switch to 4.x any time soon...
WME/Livemap enhancement scripts @ GreasyFork and Chrome Web Store
Image
Twister-UK
Area Manager
Area Manager
 
Posts: 1912
Joined: Sat Jan 07, 2012 12:00 am
Location: NW London
Has thanked: 253 times
Been thanked: 1489 times

Next

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: No registered users