Method: photo.create
Stay organized with collections
Save and categorize content based on your preferences.
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["`photo.create` publishes a 360 photo to Street View on Google Maps after it's been uploaded using an UploadRef."],["Currently, heading, pitch, and roll can only be set through Photo Sphere XMP metadata within the photo itself."],["This method may return errors if the request is malformed, photo isn't 360, upload reference is invalid, or storage limit is reached."],["Requires `https://www.googleapis.com/auth/streetviewpublish` OAuth scope for authorization."],["Uses a POST request to `https://streetviewpublish.googleapis.com/v1/photo` with the Photo details in the request body."]]],[]]