Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps Streetview - How to get Panorama ID

Tags:

google-maps

I want to use custom panorama position, but I need a panorama id for it. Can someone explain me how to get the panorama id from the next link:

https://www.google.nl/maps/@52.239981,6.851849,3a,90y,324.71h,64.65t/data=!3m5!1e1!3m3!1sFEpIJhSgOzoAAAQJOQCL3w!2e0!3e11

Thank you!

like image 826
Ocmer Avatar asked Apr 28 '15 09:04

Ocmer


People also ask

How do I download Google Street View panorama?

Download equirectangular panorama from Street View directly from the Google Maps page. Just go to maps.google.com, find a street view that you want to download and click the extension button. You can choose the quality from 1 (very low) to 5 (very high - might not be available for some locations).

How do I save a Google Street View image?

Click the "Save" icon, type in a name, select a file format, such as . bmp or . jpg, and click "Save" to save your Google Street View picture.

How do I get a Google Street View API key?

Go to the Google Maps Platform > Credentials page. On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key. Click Close.


3 Answers

Google changed the format of the pano IDs with their updates in Aug/Sept. Similar to before the pano ID can be found between the !1s and !2e. So in the example posted by Jason the pano ID would be (urldecoded):

F:-gVtvWrACv2k/Vnh0Vg8Z8YI/AAAAAAABLWA/a-AT4Wb8MD8

In order to get it to work for us we had to prepend the F: in front of it. There is also a known bug which requires the addition of an undocumented flag to use newer panos (see https://code.google.com/p/gmaps-api-issues/issues/detail?id=7452#c51):

google.maps.streetViewViewer = 'photosphere';
like image 83
Justin MacLeod Avatar answered Sep 22 '22 16:09

Justin MacLeod


  1. Find the pano on Google Maps
  2. Open Developer Tools console
  3. Copy/Paste/Run the following. Result should be the pano id.

"F:".concat(window.location.href.split("!1s")[1].split("!2e")[0]).replace('%2F','/')

Thanks @Rgrauphics

like image 40
Daniel Smith Avatar answered Sep 20 '22 16:09

Daniel Smith


This does not work for photos added to Google Maps after the Sept 3rd 2015 update.

https://www.google.com/maps/@28.4184117,-80.6076033,3a,75y,349h,88t/data=!3m8!1e1!3m6!1s-gVtvWrACv2k%2FVnh0Vg8Z8YI%2FAAAAAAABLWA%2Fa-AT4Wb8MD8!2e4!3e11!6s%2F%2Flh4.googleusercontent.com%2F-gVtvWrACv2k%2FVnh0Vg8Z8YI%2FAAAAAAABLWA%2Fa-AT4Wb8MD8%2Fw203-h101-n-k-no%2F!7i11000!8i5500

like image 43
Jason Avatar answered Sep 19 '22 16:09

Jason