1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="streetviewpublish_v1.html">Street View Publish API</a> . <a href="streetviewpublish_v1.photo.html">photo</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p> 82<p class="firstline">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](https://developers.google.com/streetview/spherical-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.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(photoId, x__xgafv=None)</a></code></p> 85<p class="firstline">Deletes a Photo and its metadata. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested photo. * google.rpc.Code.NOT_FOUND if the photo ID does not exist.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(photoId, languageCode=None, view=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Gets the metadata of the specified Photo. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested Photo. * google.rpc.Code.NOT_FOUND if the requested Photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.</p> 89<p class="toc_element"> 90 <code><a href="#startUpload">startUpload(body=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Creates an upload session to start uploading photo bytes. The method uses the upload URL of the returned UploadRef to upload the bytes for the Photo. In addition to the photo requirements shown in https://support.google.com/maps/answer/7012050?ref_topic=6275604, the photo must meet the following requirements: * Photo Sphere XMP metadata must be included in the photo metadata. See https://developers.google.com/streetview/spherical-metadata for the required fields. * The pixel size of the photo must meet the size requirements listed in https://support.google.com/maps/answer/7012050?ref_topic=6275604, and the photo must be a full 360 horizontally. After the upload completes, the method uses UploadRef with CreatePhoto to create the Photo object entry.</p> 92<p class="toc_element"> 93 <code><a href="#update">update(id, body=None, updateMask=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Updates the metadata of a Photo, such as pose, place association, connections, etc. Changing the pixels of a photo is not supported. Only the fields specified in the updateMask field are used. If `updateMask` is not present, the update applies to all fields. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested photo. * google.rpc.Code.INVALID_ARGUMENT if the request is malformed. * google.rpc.Code.NOT_FOUND if the requested photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.</p> 95<h3>Method Details</h3> 96<div class="method"> 97 <code class="details" id="close">close()</code> 98 <pre>Close httplib2 connections.</pre> 99</div> 100 101<div class="method"> 102 <code class="details" id="create">create(body=None, x__xgafv=None)</code> 103 <pre>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](https://developers.google.com/streetview/spherical-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. 104 105Args: 106 body: object, The request body. 107 The object takes the form of: 108 109{ # Photo is used to store 360 photos along with photo metadata. 110 "captureTime": "A String", # 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. 111 "connections": [ # Optional. Connections to other photos. A connection represents the link from this photo to another photo. 112 { # A connection is the link from a source photo to a destination photo. 113 "target": { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo. 114 "id": "A String", # A unique identifier for a photo. 115 }, 116 }, 117 ], 118 "downloadUrl": "A String", # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL. 119 "mapsPublishStatus": "A String", # Output only. Status in Google Maps, whether this photo was published or rejected. 120 "photoId": { # Identifier for a Photo. # Required. Output only. Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google. 121 "id": "A String", # A unique identifier for a photo. 122 }, 123 "places": [ # Optional. Places where this photo belongs. 124 { # Place metadata for an entity. 125 "languageCode": "A String", # Output only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback. 126 "name": "A String", # Output only. The name of the place, localized to the language_code. 127 "placeId": "A String", # Place identifier, as described in https://developers.google.com/places/place-id. 128 }, 129 ], 130 "pose": { # Raw pose measurement for an entity. # Optional. Pose of the photo. 131 "accuracyMeters": 3.14, # The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations. 132 "altitude": 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity. 133 "heading": 3.14, # The following pose parameters pertain to the center of the photo. They match https://developers.google.com/streetview/spherical-metadata. Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be >=0 and <360. NaN indicates an unmeasured quantity. 134 "latLngPair": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail. 135 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0]. 136 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0]. 137 }, 138 "level": { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation. 139 "name": "A String", # Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator. 140 "number": 3.14, # Optional. Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK. 141 }, 142 "pitch": 3.14, # Pitch, measured at the center of the photo in degrees. Value must be >=-90 and <= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity. 143 "roll": 3.14, # Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity. 144 }, 145 "shareLink": "A String", # Output only. The share link for the photo. 146 "thumbnailUrl": "A String", # Output only. The thumbnail URL for showing a preview of the given photo. 147 "transferStatus": "A String", # Output only. Status of rights transfer on this photo. 148 "uploadReference": { # Upload reference for media files. # Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to. 149 "uploadUrl": "A String", # An upload reference should be unique for each user. It follows the form: "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}" 150 }, 151 "uploadTime": "A String", # Output only. Time when the image was uploaded. 152 "viewCount": "A String", # Output only. View count of the photo. 153} 154 155 x__xgafv: string, V1 error format. 156 Allowed values 157 1 - v1 error format 158 2 - v2 error format 159 160Returns: 161 An object of the form: 162 163 { # Photo is used to store 360 photos along with photo metadata. 164 "captureTime": "A String", # 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. 165 "connections": [ # Optional. Connections to other photos. A connection represents the link from this photo to another photo. 166 { # A connection is the link from a source photo to a destination photo. 167 "target": { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo. 168 "id": "A String", # A unique identifier for a photo. 169 }, 170 }, 171 ], 172 "downloadUrl": "A String", # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL. 173 "mapsPublishStatus": "A String", # Output only. Status in Google Maps, whether this photo was published or rejected. 174 "photoId": { # Identifier for a Photo. # Required. Output only. Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google. 175 "id": "A String", # A unique identifier for a photo. 176 }, 177 "places": [ # Optional. Places where this photo belongs. 178 { # Place metadata for an entity. 179 "languageCode": "A String", # Output only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback. 180 "name": "A String", # Output only. The name of the place, localized to the language_code. 181 "placeId": "A String", # Place identifier, as described in https://developers.google.com/places/place-id. 182 }, 183 ], 184 "pose": { # Raw pose measurement for an entity. # Optional. Pose of the photo. 185 "accuracyMeters": 3.14, # The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations. 186 "altitude": 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity. 187 "heading": 3.14, # The following pose parameters pertain to the center of the photo. They match https://developers.google.com/streetview/spherical-metadata. Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be >=0 and <360. NaN indicates an unmeasured quantity. 188 "latLngPair": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail. 189 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0]. 190 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0]. 191 }, 192 "level": { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation. 193 "name": "A String", # Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator. 194 "number": 3.14, # Optional. Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK. 195 }, 196 "pitch": 3.14, # Pitch, measured at the center of the photo in degrees. Value must be >=-90 and <= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity. 197 "roll": 3.14, # Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity. 198 }, 199 "shareLink": "A String", # Output only. The share link for the photo. 200 "thumbnailUrl": "A String", # Output only. The thumbnail URL for showing a preview of the given photo. 201 "transferStatus": "A String", # Output only. Status of rights transfer on this photo. 202 "uploadReference": { # Upload reference for media files. # Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to. 203 "uploadUrl": "A String", # An upload reference should be unique for each user. It follows the form: "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}" 204 }, 205 "uploadTime": "A String", # Output only. Time when the image was uploaded. 206 "viewCount": "A String", # Output only. View count of the photo. 207}</pre> 208</div> 209 210<div class="method"> 211 <code class="details" id="delete">delete(photoId, x__xgafv=None)</code> 212 <pre>Deletes a Photo and its metadata. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested photo. * google.rpc.Code.NOT_FOUND if the photo ID does not exist. 213 214Args: 215 photoId: string, Required. ID of the Photo. (required) 216 x__xgafv: string, V1 error format. 217 Allowed values 218 1 - v1 error format 219 2 - v2 error format 220 221Returns: 222 An object of the form: 223 224 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. 225}</pre> 226</div> 227 228<div class="method"> 229 <code class="details" id="get">get(photoId, languageCode=None, view=None, x__xgafv=None)</code> 230 <pre>Gets the metadata of the specified Photo. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested Photo. * google.rpc.Code.NOT_FOUND if the requested Photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed. 231 232Args: 233 photoId: string, Required. ID of the Photo. (required) 234 languageCode: string, The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If language_code is unspecified, the user's language preference for Google services is used. 235 view: string, Required. Specifies if a download URL for the photo bytes should be returned in the Photo response. 236 Allowed values 237 BASIC - Server responses do not include the download URL for the photo bytes. The default value. 238 INCLUDE_DOWNLOAD_URL - Server responses include the download URL for the photo bytes. 239 x__xgafv: string, V1 error format. 240 Allowed values 241 1 - v1 error format 242 2 - v2 error format 243 244Returns: 245 An object of the form: 246 247 { # Photo is used to store 360 photos along with photo metadata. 248 "captureTime": "A String", # 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. 249 "connections": [ # Optional. Connections to other photos. A connection represents the link from this photo to another photo. 250 { # A connection is the link from a source photo to a destination photo. 251 "target": { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo. 252 "id": "A String", # A unique identifier for a photo. 253 }, 254 }, 255 ], 256 "downloadUrl": "A String", # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL. 257 "mapsPublishStatus": "A String", # Output only. Status in Google Maps, whether this photo was published or rejected. 258 "photoId": { # Identifier for a Photo. # Required. Output only. Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google. 259 "id": "A String", # A unique identifier for a photo. 260 }, 261 "places": [ # Optional. Places where this photo belongs. 262 { # Place metadata for an entity. 263 "languageCode": "A String", # Output only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback. 264 "name": "A String", # Output only. The name of the place, localized to the language_code. 265 "placeId": "A String", # Place identifier, as described in https://developers.google.com/places/place-id. 266 }, 267 ], 268 "pose": { # Raw pose measurement for an entity. # Optional. Pose of the photo. 269 "accuracyMeters": 3.14, # The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations. 270 "altitude": 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity. 271 "heading": 3.14, # The following pose parameters pertain to the center of the photo. They match https://developers.google.com/streetview/spherical-metadata. Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be >=0 and <360. NaN indicates an unmeasured quantity. 272 "latLngPair": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail. 273 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0]. 274 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0]. 275 }, 276 "level": { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation. 277 "name": "A String", # Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator. 278 "number": 3.14, # Optional. Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK. 279 }, 280 "pitch": 3.14, # Pitch, measured at the center of the photo in degrees. Value must be >=-90 and <= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity. 281 "roll": 3.14, # Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity. 282 }, 283 "shareLink": "A String", # Output only. The share link for the photo. 284 "thumbnailUrl": "A String", # Output only. The thumbnail URL for showing a preview of the given photo. 285 "transferStatus": "A String", # Output only. Status of rights transfer on this photo. 286 "uploadReference": { # Upload reference for media files. # Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to. 287 "uploadUrl": "A String", # An upload reference should be unique for each user. It follows the form: "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}" 288 }, 289 "uploadTime": "A String", # Output only. Time when the image was uploaded. 290 "viewCount": "A String", # Output only. View count of the photo. 291}</pre> 292</div> 293 294<div class="method"> 295 <code class="details" id="startUpload">startUpload(body=None, x__xgafv=None)</code> 296 <pre>Creates an upload session to start uploading photo bytes. The method uses the upload URL of the returned UploadRef to upload the bytes for the Photo. In addition to the photo requirements shown in https://support.google.com/maps/answer/7012050?ref_topic=6275604, the photo must meet the following requirements: * Photo Sphere XMP metadata must be included in the photo metadata. See https://developers.google.com/streetview/spherical-metadata for the required fields. * The pixel size of the photo must meet the size requirements listed in https://support.google.com/maps/answer/7012050?ref_topic=6275604, and the photo must be a full 360 horizontally. After the upload completes, the method uses UploadRef with CreatePhoto to create the Photo object entry. 297 298Args: 299 body: object, The request body. 300 The object takes the form of: 301 302{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. 303} 304 305 x__xgafv: string, V1 error format. 306 Allowed values 307 1 - v1 error format 308 2 - v2 error format 309 310Returns: 311 An object of the form: 312 313 { # Upload reference for media files. 314 "uploadUrl": "A String", # An upload reference should be unique for each user. It follows the form: "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}" 315}</pre> 316</div> 317 318<div class="method"> 319 <code class="details" id="update">update(id, body=None, updateMask=None, x__xgafv=None)</code> 320 <pre>Updates the metadata of a Photo, such as pose, place association, connections, etc. Changing the pixels of a photo is not supported. Only the fields specified in the updateMask field are used. If `updateMask` is not present, the update applies to all fields. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested photo. * google.rpc.Code.INVALID_ARGUMENT if the request is malformed. * google.rpc.Code.NOT_FOUND if the requested photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed. 321 322Args: 323 id: string, A unique identifier for a photo. (required) 324 body: object, The request body. 325 The object takes the form of: 326 327{ # Photo is used to store 360 photos along with photo metadata. 328 "captureTime": "A String", # 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. 329 "connections": [ # Optional. Connections to other photos. A connection represents the link from this photo to another photo. 330 { # A connection is the link from a source photo to a destination photo. 331 "target": { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo. 332 "id": "A String", # A unique identifier for a photo. 333 }, 334 }, 335 ], 336 "downloadUrl": "A String", # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL. 337 "mapsPublishStatus": "A String", # Output only. Status in Google Maps, whether this photo was published or rejected. 338 "photoId": { # Identifier for a Photo. # Required. Output only. Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google. 339 "id": "A String", # A unique identifier for a photo. 340 }, 341 "places": [ # Optional. Places where this photo belongs. 342 { # Place metadata for an entity. 343 "languageCode": "A String", # Output only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback. 344 "name": "A String", # Output only. The name of the place, localized to the language_code. 345 "placeId": "A String", # Place identifier, as described in https://developers.google.com/places/place-id. 346 }, 347 ], 348 "pose": { # Raw pose measurement for an entity. # Optional. Pose of the photo. 349 "accuracyMeters": 3.14, # The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations. 350 "altitude": 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity. 351 "heading": 3.14, # The following pose parameters pertain to the center of the photo. They match https://developers.google.com/streetview/spherical-metadata. Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be >=0 and <360. NaN indicates an unmeasured quantity. 352 "latLngPair": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail. 353 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0]. 354 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0]. 355 }, 356 "level": { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation. 357 "name": "A String", # Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator. 358 "number": 3.14, # Optional. Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK. 359 }, 360 "pitch": 3.14, # Pitch, measured at the center of the photo in degrees. Value must be >=-90 and <= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity. 361 "roll": 3.14, # Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity. 362 }, 363 "shareLink": "A String", # Output only. The share link for the photo. 364 "thumbnailUrl": "A String", # Output only. The thumbnail URL for showing a preview of the given photo. 365 "transferStatus": "A String", # Output only. Status of rights transfer on this photo. 366 "uploadReference": { # Upload reference for media files. # Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to. 367 "uploadUrl": "A String", # An upload reference should be unique for each user. It follows the form: "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}" 368 }, 369 "uploadTime": "A String", # Output only. Time when the image was uploaded. 370 "viewCount": "A String", # Output only. View count of the photo. 371} 372 373 updateMask: string, Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` > Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed. 374 x__xgafv: string, V1 error format. 375 Allowed values 376 1 - v1 error format 377 2 - v2 error format 378 379Returns: 380 An object of the form: 381 382 { # Photo is used to store 360 photos along with photo metadata. 383 "captureTime": "A String", # 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. 384 "connections": [ # Optional. Connections to other photos. A connection represents the link from this photo to another photo. 385 { # A connection is the link from a source photo to a destination photo. 386 "target": { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo. 387 "id": "A String", # A unique identifier for a photo. 388 }, 389 }, 390 ], 391 "downloadUrl": "A String", # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL. 392 "mapsPublishStatus": "A String", # Output only. Status in Google Maps, whether this photo was published or rejected. 393 "photoId": { # Identifier for a Photo. # Required. Output only. Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google. 394 "id": "A String", # A unique identifier for a photo. 395 }, 396 "places": [ # Optional. Places where this photo belongs. 397 { # Place metadata for an entity. 398 "languageCode": "A String", # Output only. The language_code that the name is localized with. This should be the language_code specified in the request, but may be a fallback. 399 "name": "A String", # Output only. The name of the place, localized to the language_code. 400 "placeId": "A String", # Place identifier, as described in https://developers.google.com/places/place-id. 401 }, 402 ], 403 "pose": { # Raw pose measurement for an entity. # Optional. Pose of the photo. 404 "accuracyMeters": 3.14, # The estimated horizontal accuracy of this pose in meters with 68% confidence (one standard deviation). For example, on Android, this value is available from this method: https://developer.android.com/reference/android/location/Location#getAccuracy(). Other platforms have different methods of obtaining similar accuracy estimations. 405 "altitude": 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity. 406 "heading": 3.14, # The following pose parameters pertain to the center of the photo. They match https://developers.google.com/streetview/spherical-metadata. Compass heading, measured at the center of the photo in degrees clockwise from North. Value must be >=0 and <360. NaN indicates an unmeasured quantity. 407 "latLngPair": { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # Latitude and longitude pair of the pose, as explained here: https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng When creating a Photo, if the latitude and longitude pair are not provided, the geolocation from the exif header is used. A latitude and longitude pair not provided in the photo or exif header causes the photo process to fail. 408 "latitude": 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0]. 409 "longitude": 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0]. 410 }, 411 "level": { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation. 412 "name": "A String", # Required. A name assigned to this Level, restricted to 3 characters. Consider how the elevator buttons would be labeled for this level if there was an elevator. 413 "number": 3.14, # Optional. Floor number, used for ordering. 0 indicates the ground level, 1 indicates the first level above ground level, -1 indicates the first level under ground level. Non-integer values are OK. 414 }, 415 "pitch": 3.14, # Pitch, measured at the center of the photo in degrees. Value must be >=-90 and <= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity. 416 "roll": 3.14, # Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity. 417 }, 418 "shareLink": "A String", # Output only. The share link for the photo. 419 "thumbnailUrl": "A String", # Output only. The thumbnail URL for showing a preview of the given photo. 420 "transferStatus": "A String", # Output only. Status of rights transfer on this photo. 421 "uploadReference": { # Upload reference for media files. # Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to. 422 "uploadUrl": "A String", # An upload reference should be unique for each user. It follows the form: "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}" 423 }, 424 "uploadTime": "A String", # Output only. Time when the image was uploaded. 425 "viewCount": "A String", # Output only. View count of the photo. 426}</pre> 427</div> 428 429</body></html>