v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13143047.9 KB
photo

After the client finishes uploading the photo with the returned UploadRef, CreatePhoto publishes the uploaded Photo to Street View on Google Maps. Currently, the only way to set heading, pitch, and roll in CreatePhoto is through the Photo Sphere XMP metadata in the photo bytes. CreatePhoto ignores the pose.heading, pose.pitch, pose.roll, pose.altitude, and pose.level fields in Pose. This method returns the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request is malformed or if the uploaded photo is not a 360 photo. * google.rpc.Code.NOT_FOUND if the upload reference does not exist. * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the storage limit.

post/v1/photo

Request body

transferStatus'TRANSFER_STATUS_UNKNOWN' | 'NEVER_TRANSFERRED' | 'PENDING' | 'COMPLETED' | 'REJECTED' | 'EXPIRED' | 'CANCELLED' | 'RECEIVED_VIA_TRANSFER'

Output only. Status of rights transfer on this photo.

mapsPublishStatus'UNSPECIFIED_MAPS_PUBLISH_STATUS' | 'PUBLISHED' | 'REJECTED_UNKNOWN'

Output only. Status in Google Maps, whether this photo was published or rejected.

shareLinkstring

Output only. The share link for the photo.

thumbnailUrlstring

Output only. The thumbnail URL for showing a preview of the given photo.

viewCountstring int64

Output only. View count of the photo.

captureTimestring google-datetime

Optional. Absolute time when the photo was captured. When the photo has no exif timestamp, this is used to set a timestamp in the photo metadata.

downloadUrlstring

Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.

uploadTimestring google-datetime

Output only. Time when the image was uploaded.

Response

Successful response