I can’t find a quick way to get the GPS coordinates from the Waze Map Editor instead of manually editing the Permalink available.
So I just coded this simple script for a HTML file to help converting the PERMALINK to GPS.
I hope you find it useful as well.
[code]<html>
<body onload=“convertGPS()”>
<script type=“text/javascript”>
function convertGPS()
{
var permalink = prompt(“Enter permalink from Waze:”);
var slat = permalink.indexOf("lat="); // Index of Latitude (Start)
var elat = permalink.indexOf("&lon"); // Index of Latitude (End)
var lat = permalink.substring(slat+4,elat-slat+slat); // Latitude coordinate
var slon = permalink.indexOf("lon="); // Index of Latitude (Start)
var elon = permalink.indexOf("&lay"); // Index of Latitude (End)
var lon = permalink.substring(slon+4,elon-slon+slon); // Latitude coordinate
GPS = lat.concat(', ',lon); // GPS coordinates
choice=prompt("'OK' to go to Google Maps | 'Cancel' to go back",GPS);
if ( choice != null)
window.location = 'http://maps.google.com/maps?q=' + GPS;
else
convertGPS();
}
</script>
</body>
</html>
[/code]
Usage:
0 - Copy & paste the above code to a new file, for example, “WazeGPS.html”
1 - Load the “WazeGPS.html” in your browser (tested in Chrome)
2 - Copy & paste the permalink from Waze Map Editor in to the prompt box
3 - Choose ‘OK’ to go directly to the Google Maps centered in the GPS coordinates
OR
You may copy & paste the GPS coordinates provided by the script to wherever you want and choose ‘Cancel’ to go back