Note that there are some explanatory texts on larger screens.

plurals
  1. POLoading Google Street View Image API by panorama ID rather than location
    primarykey
    data
    text
    <p>The Street View image API, as <a href="https://developers.google.com/maps/documentation/streetview/" rel="noreferrer">documented here</a>, gives static images for a particular location. However, it does not accept a panorama ID parameter for loading specific panoramas.</p> <p>Recent additions to Google Maps' Street View imagery have been "off the map", and only accessible via the panorama id (the panoid URL parameter), such as <a href="https://maps.google.com/maps?t=m&amp;hl=en&amp;ll=36.732625,138.462174&amp;z=17&amp;layer=c&amp;cbll=36.732633,138.462177&amp;cbp=13,120.39,,0,17.04&amp;panoid=-_0l0tU3lKz0JtaEsqJk7w" rel="noreferrer">these hot-tub monkeys</a> or <a href="https://maps.google.com/maps?q=North+5th+and+Bedford+in+brooklyn&amp;hl=en&amp;sll=37.0625,-95.677068&amp;sspn=35.768112,86.572266&amp;hnear=Bedford+Ave+%26+N+5th+St,+Brooklyn,+Kings,+New+York+11211&amp;t=m&amp;layer=c&amp;cbll=40.717571,-73.963103&amp;panoid=dvn5EBkjcD0NPCE_Fqp2fw&amp;cbp=12,252.03,,1,0&amp;ie=UTF8&amp;hq=&amp;ll=40.717571,-73.963103&amp;spn=0.003326,0.006706&amp;z=18&amp;vpsrc=0" rel="noreferrer">this donkey</a>. If you remove the panoid from the URL then the <a href="https://maps.google.com/maps?t=m&amp;hl=en&amp;ll=36.732625,138.462174&amp;z=17&amp;layer=c&amp;cbll=36.732633,138.462177&amp;cbp=13,120.39,,0,17.04&amp;panoid=" rel="noreferrer">monkeys don't load</a>. For comparison, this <a href="https://maps.google.com/maps?t=h&amp;hl=en&amp;ll=36.552295,-118.761381&amp;z=19&amp;layer=c&amp;cbll=36.552371,-118.761633&amp;cbp=12,75.73768037238169,,1,5.095531419705196" rel="noreferrer">picture of a tree</a> doesn't need the panoid to load the streetview panorama.</p> <p>This same behaviour is seen when loading these panoramas via the API. The <a href="https://developers.google.com/maps/documentation/javascript/reference#StreetViewPanorama" rel="noreferrer">Google Maps API docs</a> has the following to say about the panoid: </p> <blockquote> <p>Returns the current panorama ID for the Street View panorama. This id is stable within the browser's current session only.</p> </blockquote> <p>However, as shown above with the monkeys the panorama id is not tied to the current session. </p> <p>My problem is that the Google Street View Image API doesn't accept the panoid, so there is no way I can find to get a static image of the monkeys. The <a href="http://maps.googleapis.com/maps/api/streetview?size=482x323&amp;location=36.552371,-118.761633&amp;fov=40&amp;heading=75.73768037238169&amp;pitch=-5.09553141971&amp;sensor=false" rel="noreferrer">static image of the tree</a> works, but I get "no imagery" for <a href="http://maps.googleapis.com/maps/api/streetview?size=482x323&amp;location=36.732633,138.462177&amp;fov=40&amp;heading=75.73768037238169&amp;pitch=-5.09553141971&amp;sensor=false" rel="noreferrer">the monkeys</a>.</p> <p>Why are these streetviews not available on the API by location, and is there a way to load static images from the panorama ID? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload