Method: photo.create

After the client finishes uploading the photo with the returned UploadRef, photo.create publishes the uploaded Photo to Street View on Google Maps.

Currently, the only way to set heading, pitch, and roll in photo.create is through the Photo Sphere XMP metadata in the photo bytes. photo.create ignores the pose.heading, pose.pitch, pose.roll, pose.altitude, and pose.level fields in Pose.

This method returns the following error codes:

HTTP request

POST https://streetviewpublish.googleapis.com/v1/photo

The URL uses gRPC Transcoding syntax.

Request body

The request body contains an instance of Photo.

Response body

If successful, the response body contains a newly created instance of Photo.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/streetviewpublish

For more information, see the OAuth 2.0 Overview.

Try it!