Converting Google Maps Street View URLs to KML

Google Maps Classic has been discontinued, and with it old URLs that pointed to Street View are no-longer working, including some in old posts on GEB. So we decided to write a bit of JavaScript to convert between Google Maps URL formats to aid in updating the broken links to the newer version of Google Maps. This required figuring out the various Google Maps URL formats.

We thought this would be a good opportunity to create a converter from Google Maps URLs to KML. In Google Earth there is a ‘View in Google Maps’ button, but no corresponding button exists in Google Maps for the reverse process. We have mentioned in the past that it is often difficult to find underwater Street View or aerial Street View in Google Earth. Google’s new ‘Street View highlights’ layer has made it a lot easier to find some locations. But for a random Street View location, the only way to find it in Google Earth is to search for the latitude and longitude, enter Street View and then try and find the same view.


It is difficult to get from the above location in Google Maps Street View to the same location in Google Earth as seen below.

So here is our first attempt at a converter from Google Maps Street View, to Google Earth. The script takes into account which direction you are looking in the Street View, but currently ignores the zoom. There are a few short comings with the process. Firstly, Google Earth does not have historical Street View, so if you start with an historical Street View URL you will instead see the most current Street View at that location. Secondly, it only seems to work with true Street View. If you try a user contributed PhotoSphere Google Earth will not display it.

Find a location you are interested in using Google Maps Street View then copy and paste the URL into the field below then click ‘Download KML’.

Google Maps Street View URL:

About Timothy Whitehead

Timothy has been using Google Earth since 2004 when it was still called Keyhole before it was renamed Google Earth in 2005 and has been a huge fan ever since. He is a programmer working for Red Wing Aerobatx and lives in Cape Town, South Africa.






PLEASE NOTE: Google Earth Blog is no longer writing regular posts. As a result, we are not accepting new comments or questions about Google Earth. If you have a question, use the official Google Earth and Maps Forums or the Google Earth Community Forums.

Comments

  1. LeRoy Mobley says
  2. I think it’s time to shoot myself.

  3. Might make a cool Chrome Extension too

  4. It will be cool to have “save route as kml” instead of Street View. It was very helpful…..



PLEASE NOTE: Google Earth Blog is no longer writing regular posts. As a result, we are not accepting new comments or questions about Google Earth. If you have a question, use the official Google Earth and Maps Forums or the Google Earth Community Forums.