Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loading Google Street View Image API by panorama ID rather than location

The Street View image API, as documented here, gives static images for a particular location. However, it does not accept a panorama ID parameter for loading specific panoramas.

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 these hot-tub monkeys or this donkey. If you remove the panoid from the URL then the monkeys don't load. For comparison, this picture of a tree doesn't need the panoid to load the streetview panorama.

This same behaviour is seen when loading these panoramas via the API. The Google Maps API docs has the following to say about the panoid:

Returns the current panorama ID for the Street View panorama. This id is stable within the browser's current session only.

However, as shown above with the monkeys the panorama id is not tied to the current session.

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 static image of the tree works, but I get "no imagery" for the monkeys.

Why are these streetviews not available on the API by location, and is there a way to load static images from the panorama ID?

like image 285
jturnbull Avatar asked Jul 18 '12 08:07

jturnbull


2 Answers

I think its a bit of a hack but here are your monkeys:

http://cbk0.google.com/cbk?output=thumbnail&w=500&h=500&panoid=-_0l0tU3lKz0JtaEsqJk7w

I used this site as a reference

like image 67
Manatok Avatar answered Oct 02 '22 14:10

Manatok


You are missing three parameters: pov, heading and pitch so that you cannot see the monkey image.

When calling the street view image API using a pano id, try use &pano=#panoid.

The monkey

like image 21
Max C. Avatar answered Oct 02 '22 14:10

Max C.