Google Street View Image API

Introduction

The Google Street View Image API lets you embed a static (non-interactive)
Street View panorama or thumbnail into your web page, without the use of
JavaScript. The viewport is defined with URL parameters sent through a
standard HTTP request, and is returned as a static image.

URL Parameters

The image is specified using request parameters. As is standard in
URLs, all parameters are separated using the ampersand (&) character.
Allowed parameters and their possible values are listed below.

Required parameters

Either:

location can be either a text string (such as Chagrin
Falls, OH) or a lat/lng value (40.457375,-80.009353).
The Google Street View Image API will snap to the panorama photographed closest to
this location. When an address text string is provided, the API may use a different camera
location to better display the specified location. When a lat/lng is provided, the API
searches a 50 meter radius for a photograph closest to this location.
Because Street View imagery is periodically refreshed, and
photographs may be taken from slightly different positions each time, it's
possible that your location may snap to a different panorama
when imagery is updated.

Or:

pano is a specific panorama ID. These are generally stable.

As well as:

size specifies the output size of the image in pixels. Size
is specified as {width}x{height} - for
example, size=600x400 returns an image 600 pixels wide, and
400 high.

Customers with a previousGoogle Maps APIs for Work
license must include valid client and signature parameters
with their requests, instead of a key. For more information, please refer
to the Client IDs and signatures section of the
Get a Key and Signature page.

Optional parameters

signature (recommended) is a digital signature used
to verify that any site generating requests using your API key is authorized
to do so. Note: If you enable billing, the digital signature is required.
If you exceed the
free daily limit of map loads, additional map loads are billable for the remainder
of that day. Billable map loads that do not include a digital signature will fail.
For more information, see Get a Key and Signature.

heading indicates the compass heading of
the camera. Accepted values are from 0 to 360
(both values indicating North, with 90 indicating East, and
180 South). If no heading is specified, a value will be
calculated that directs the camera towards the specified
location, from the point at which the closest photograph was
taken.

fov (default is90)
determines the horizontal field of view of the image. The field of view
is expressed in degrees, with a maximum allowed value of 120.
When dealing with a fixed-size viewport, as with a Street View image of a
set size, field of view in essence represents zoom, with smaller numbers
indicating a higher level of zoom.

(Left: fov=120; Right: fov=20)

pitch (default is0)
specifies the up or down angle of the camera relative to the Street View
vehicle. This is often, but not always, flat horizontal. Positive values
angle the camera up (with 90 degrees indicating straight up);
negative values angle the camera down (with -90 indicating
straight down).