[Script] Live Map UR Layer v1.5 (20130516)

The place to get information and ask questions about everything to do with properly and successfully editing the Waze Map.

Use this forum for all general editing questions, and the sub-forums for specific types of Waze Map Editor features.

Moderators: support, Unholy, krankyd, The Fej

[Script] Live Map UR Layer v1.5 (20130516)

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.


http://userscripts.org/scripts/show/150276
Last edited by Twister_UK on Thu May 16, 2013 11:17 am, edited 15 times in total.

HTC One X - Android 4.1.1 - Waze 3.6.0.0 - International Server
AM for NW London and the M4-A404-M40 loop - Editing Expert
WME enhancement scripts (WMEOD:URO:LMUR:SRS) @ userscripts.org
Twister_UK
 
Posts: 477
Joined: Sat Jan 07, 2012 3:56 pm
Location: NW London
Has thanked: 19 times
Been thanked: 86 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

HTC One X - Android 4.1.1 - Waze 3.6.0.0 - International Server
AM for NW London and the M4-A404-M40 loop - Editing Expert
WME enhancement scripts (WMEOD:URO:LMUR:SRS) @ userscripts.org
Twister_UK
 
Posts: 477
Joined: Sat Jan 07, 2012 3:56 pm
Location: NW London
Has thanked: 19 times
Been thanked: 86 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 • UK Country Admin • Forum Moderator • Beta Editor and Routing Expert
Scripts: WME Colour Highlights v1.6 « NEW (Feb 2013)Livemap Navigation v0.72 (Jan 2013)
Timbones
Waze Champs
 
Posts: 2853
Joined: Wed Feb 09, 2011 10:33 am
Location: York, UK
Has thanked: 17 times
Been thanked: 188 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 :roll: Symbian 2.1.99.114 (N-E52),
while trying to get used to Android 3.6.xx.yyy (SG-A2).
foxitrot
Waze Champs
 
Posts: 3584
Joined: Thu Jul 14, 2011 10:22 pm
Location: Slovakia
Has thanked: 121 times
Been thanked: 54 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! ;)
Country Manager: UK
AM: London (DELETED), South Wales
Waze 3.6.0.0 • iPhone 4S (iOS 5.1.1) • Chrome on XP
Image
UK WikiWaze FAQ
My name is Iain and I'm a Wazaholic. I last edited 1 hour ago.
iainhouse
 
Posts: 1061
Joined: Mon Jul 23, 2012 5:16 pm
Location: London, UK
Has thanked: 83 times
Been thanked: 132 times

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

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

Image
Image
bgodette
Waze Champs
 
Posts: 2476
Joined: Wed Jul 06, 2011 8:19 pm
Location: Denver, CO
Has thanked: 5 times
Been thanked: 32 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 | Android expert
Forum PT | Wiki PT | Facebook PT | Twitter PT
pvaladares
 
Posts: 486
Joined: Sun Jun 24, 2012 6:05 pm
Location: Porto, Portugal
Has thanked: 2 times
Been thanked: 7 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

HTC One X - Android 4.1.1 - Waze 3.6.0.0 - International Server
AM for NW London and the M4-A404-M40 loop - Editing Expert
WME enhancement scripts (WMEOD:URO:LMUR:SRS) @ userscripts.org
Twister_UK
 
Posts: 477
Joined: Sat Jan 07, 2012 3:56 pm
Location: NW London
Has thanked: 19 times
Been thanked: 86 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 | Android expert
Forum PT | Wiki PT | Facebook PT | Twitter PT
pvaladares
 
Posts: 486
Joined: Sun Jun 24, 2012 6:05 pm
Location: Porto, Portugal
Has thanked: 2 times
Been thanked: 7 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

HTC One X - Android 4.1.1 - Waze 3.6.0.0 - International Server
AM for NW London and the M4-A404-M40 loop - Editing Expert
WME enhancement scripts (WMEOD:URO:LMUR:SRS) @ userscripts.org
Twister_UK
 
Posts: 477
Joined: Sat Jan 07, 2012 3:56 pm
Location: NW London
Has thanked: 19 times
Been thanked: 86 times

Next

Return to Waze Map Editor

Who is online

Users browsing this forum: Google [Bot]