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.photos.html">photos</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#batchDelete">batchDelete(body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos fails, either critical fields are missing or there is an authentication error. Even if BatchDeletePhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchDeletePhotosResponse.results. See DeletePhoto for specific failures that can occur per photo.</p>
80<p class="toc_element">
81  <code><a href="#batchGet">batchGet(languageCode=None, photoIds=None, view=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Gets the metadata of the specified Photo batch. Note that if BatchGetPhotos fails, either critical fields are missing or there is an authentication error. Even if BatchGetPhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchGetPhotosResponse.results. See GetPhoto for specific failures that can occur per photo.</p>
83<p class="toc_element">
84  <code><a href="#batchUpdate">batchUpdate(body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Updates the metadata of Photos, such as pose, place association, connections, etc. Changing the pixels of photos is not supported. Note that if BatchUpdatePhotos fails, either critical fields are missing or there is an authentication error. Even if BatchUpdatePhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchUpdatePhotosResponse.results. See UpdatePhoto for specific failures that can occur per photo. Only the fields specified in updateMask field are used. If `updateMask` is not present, the update applies to all fields. The number of UpdatePhotoRequest messages in a BatchUpdatePhotosRequest must not exceed 20. > Note: To update Pose.altitude, Pose.latLngPair has to be filled as well. Otherwise, the request will fail.</p>
86<p class="toc_element">
87  <code><a href="#close">close()</a></code></p>
88<p class="firstline">Close httplib2 connections.</p>
89<p class="toc_element">
90  <code><a href="#list">list(filter=None, languageCode=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Lists all the Photos that belong to the user. > Note: Recently created photos that are still being indexed are not returned in the response.</p>
92<p class="toc_element">
93  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<h3>Method Details</h3>
96<div class="method">
97    <code class="details" id="batchDelete">batchDelete(body=None, x__xgafv=None)</code>
98  <pre>Deletes a list of Photos and their metadata. Note that if BatchDeletePhotos fails, either critical fields are missing or there is an authentication error. Even if BatchDeletePhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchDeletePhotosResponse.results. See DeletePhoto for specific failures that can occur per photo.
99
100Args:
101  body: object, The request body.
102    The object takes the form of:
103
104{ # Request to delete multiple Photos.
105  &quot;photoIds&quot;: [ # Required. IDs of the Photos. HTTP GET requests require the following syntax for the URL query parameter: `photoIds=&amp;photoIds=&amp;...`.
106    &quot;A String&quot;,
107  ],
108}
109
110  x__xgafv: string, V1 error format.
111    Allowed values
112      1 - v1 error format
113      2 - v2 error format
114
115Returns:
116  An object of the form:
117
118    { # Response to batch delete of one or more Photos.
119  &quot;status&quot;: [ # The status for the operation to delete a single Photo in the batch request.
120    { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
121      &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
122      &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
123        {
124          &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
125        },
126      ],
127      &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
128    },
129  ],
130}</pre>
131</div>
132
133<div class="method">
134    <code class="details" id="batchGet">batchGet(languageCode=None, photoIds=None, view=None, x__xgafv=None)</code>
135  <pre>Gets the metadata of the specified Photo batch. Note that if BatchGetPhotos fails, either critical fields are missing or there is an authentication error. Even if BatchGetPhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchGetPhotosResponse.results. See GetPhoto for specific failures that can occur per photo.
136
137Args:
138  languageCode: string, Optional. The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If language_code is unspecified, the user&#x27;s language preference for Google services is used.
139  photoIds: string, Required. IDs of the Photos. For HTTP GET requests, the URL query parameter should be `photoIds=&amp;photoIds=&amp;...`. (repeated)
140  view: string, Required. Specifies if a download URL for the photo bytes should be returned in the Photo response.
141    Allowed values
142      BASIC - Server responses do not include the download URL for the photo bytes. The default value.
143      INCLUDE_DOWNLOAD_URL - Server responses include the download URL for the photo bytes.
144  x__xgafv: string, V1 error format.
145    Allowed values
146      1 - v1 error format
147      2 - v2 error format
148
149Returns:
150  An object of the form:
151
152    { # Response to batch get of Photos.
153  &quot;results&quot;: [ # List of results for each individual Photo requested, in the same order as the requests in BatchGetPhotos.
154    { # Response payload for a single Photo in batch operations including BatchGetPhotos and BatchUpdatePhotos.
155      &quot;photo&quot;: { # Photo is used to store 360 photos along with photo metadata. # The Photo resource, if the request was successful.
156        &quot;captureTime&quot;: &quot;A String&quot;, # 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.
157        &quot;connections&quot;: [ # Optional. Connections to other photos. A connection represents the link from this photo to another photo.
158          { # A connection is the link from a source photo to a destination photo.
159            &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
160              &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
161            },
162          },
163        ],
164        &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
165        &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected.
166        &quot;photoId&quot;: { # 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.
167          &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
168        },
169        &quot;places&quot;: [ # Optional. Places where this photo belongs.
170          { # Place metadata for an entity.
171            &quot;languageCode&quot;: &quot;A String&quot;, # 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.
172            &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the place, localized to the language_code.
173            &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
174          },
175        ],
176        &quot;pose&quot;: { # Raw pose measurement for an entity. # Optional. Pose of the photo.
177          &quot;accuracyMeters&quot;: 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.
178          &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
179          &quot;heading&quot;: 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 &gt;=0 and &lt;360. NaN indicates an unmeasured quantity.
180          &quot;latLngPair&quot;: { # 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.
181            &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
182            &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
183          },
184          &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
185            &quot;name&quot;: &quot;A String&quot;, # 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.
186            &quot;number&quot;: 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.
187          },
188          &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90 and &lt;= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity.
189          &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity.
190        },
191        &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
192        &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
193        &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
194        &quot;uploadReference&quot;: { # Upload reference for media files. # Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
195          &quot;uploadUrl&quot;: &quot;A String&quot;, # An upload reference should be unique for each user. It follows the form: &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
196        },
197        &quot;uploadTime&quot;: &quot;A String&quot;, # Output only. Time when the image was uploaded.
198        &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
199      },
200      &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The status for the operation to get or update a single photo in the batch request.
201        &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
202        &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
203          {
204            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
205          },
206        ],
207        &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
208      },
209    },
210  ],
211}</pre>
212</div>
213
214<div class="method">
215    <code class="details" id="batchUpdate">batchUpdate(body=None, x__xgafv=None)</code>
216  <pre>Updates the metadata of Photos, such as pose, place association, connections, etc. Changing the pixels of photos is not supported. Note that if BatchUpdatePhotos fails, either critical fields are missing or there is an authentication error. Even if BatchUpdatePhotos succeeds, individual photos in the batch may have failures. These failures are specified in each PhotoResponse.status in BatchUpdatePhotosResponse.results. See UpdatePhoto for specific failures that can occur per photo. Only the fields specified in updateMask field are used. If `updateMask` is not present, the update applies to all fields. The number of UpdatePhotoRequest messages in a BatchUpdatePhotosRequest must not exceed 20. &gt; Note: To update Pose.altitude, Pose.latLngPair has to be filled as well. Otherwise, the request will fail.
217
218Args:
219  body: object, The request body.
220    The object takes the form of:
221
222{ # Request to update the metadata of photos. Updating the pixels of photos is not supported.
223  &quot;updatePhotoRequests&quot;: [ # Required. List of UpdatePhotoRequests.
224    { # Request to update the metadata of a Photo. Updating the pixels of a photo is not supported.
225      &quot;photo&quot;: { # Photo is used to store 360 photos along with photo metadata. # Required. Photo object containing the new metadata.
226        &quot;captureTime&quot;: &quot;A String&quot;, # 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.
227        &quot;connections&quot;: [ # Optional. Connections to other photos. A connection represents the link from this photo to another photo.
228          { # A connection is the link from a source photo to a destination photo.
229            &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
230              &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
231            },
232          },
233        ],
234        &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
235        &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected.
236        &quot;photoId&quot;: { # 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.
237          &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
238        },
239        &quot;places&quot;: [ # Optional. Places where this photo belongs.
240          { # Place metadata for an entity.
241            &quot;languageCode&quot;: &quot;A String&quot;, # 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.
242            &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the place, localized to the language_code.
243            &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
244          },
245        ],
246        &quot;pose&quot;: { # Raw pose measurement for an entity. # Optional. Pose of the photo.
247          &quot;accuracyMeters&quot;: 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.
248          &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
249          &quot;heading&quot;: 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 &gt;=0 and &lt;360. NaN indicates an unmeasured quantity.
250          &quot;latLngPair&quot;: { # 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.
251            &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
252            &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
253          },
254          &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
255            &quot;name&quot;: &quot;A String&quot;, # 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.
256            &quot;number&quot;: 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.
257          },
258          &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90 and &lt;= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity.
259          &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity.
260        },
261        &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
262        &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
263        &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
264        &quot;uploadReference&quot;: { # Upload reference for media files. # Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
265          &quot;uploadUrl&quot;: &quot;A String&quot;, # An upload reference should be unique for each user. It follows the form: &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
266        },
267        &quot;uploadTime&quot;: &quot;A String&quot;, # Output only. Time when the image was uploaded.
268        &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
269      },
270      &quot;updateMask&quot;: &quot;A String&quot;, # 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` &gt; 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.
271    },
272  ],
273}
274
275  x__xgafv: string, V1 error format.
276    Allowed values
277      1 - v1 error format
278      2 - v2 error format
279
280Returns:
281  An object of the form:
282
283    { # Response to batch update of metadata of one or more Photos.
284  &quot;results&quot;: [ # List of results for each individual Photo updated, in the same order as the request.
285    { # Response payload for a single Photo in batch operations including BatchGetPhotos and BatchUpdatePhotos.
286      &quot;photo&quot;: { # Photo is used to store 360 photos along with photo metadata. # The Photo resource, if the request was successful.
287        &quot;captureTime&quot;: &quot;A String&quot;, # 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.
288        &quot;connections&quot;: [ # Optional. Connections to other photos. A connection represents the link from this photo to another photo.
289          { # A connection is the link from a source photo to a destination photo.
290            &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
291              &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
292            },
293          },
294        ],
295        &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
296        &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected.
297        &quot;photoId&quot;: { # 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.
298          &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
299        },
300        &quot;places&quot;: [ # Optional. Places where this photo belongs.
301          { # Place metadata for an entity.
302            &quot;languageCode&quot;: &quot;A String&quot;, # 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.
303            &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the place, localized to the language_code.
304            &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
305          },
306        ],
307        &quot;pose&quot;: { # Raw pose measurement for an entity. # Optional. Pose of the photo.
308          &quot;accuracyMeters&quot;: 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.
309          &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
310          &quot;heading&quot;: 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 &gt;=0 and &lt;360. NaN indicates an unmeasured quantity.
311          &quot;latLngPair&quot;: { # 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.
312            &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
313            &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
314          },
315          &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
316            &quot;name&quot;: &quot;A String&quot;, # 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.
317            &quot;number&quot;: 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.
318          },
319          &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90 and &lt;= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity.
320          &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity.
321        },
322        &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
323        &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
324        &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
325        &quot;uploadReference&quot;: { # Upload reference for media files. # Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
326          &quot;uploadUrl&quot;: &quot;A String&quot;, # An upload reference should be unique for each user. It follows the form: &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
327        },
328        &quot;uploadTime&quot;: &quot;A String&quot;, # Output only. Time when the image was uploaded.
329        &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
330      },
331      &quot;status&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The status for the operation to get or update a single photo in the batch request.
332        &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
333        &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
334          {
335            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
336          },
337        ],
338        &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
339      },
340    },
341  ],
342}</pre>
343</div>
344
345<div class="method">
346    <code class="details" id="close">close()</code>
347  <pre>Close httplib2 connections.</pre>
348</div>
349
350<div class="method">
351    <code class="details" id="list">list(filter=None, languageCode=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
352  <pre>Lists all the Photos that belong to the user. &gt; Note: Recently created photos that are still being indexed are not returned in the response.
353
354Args:
355  filter: string, Optional. The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. The filters supported at the moment are: `placeId`.
356  languageCode: string, Optional. The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. If language_code is unspecified, the user&#x27;s language preference for Google services is used.
357  pageSize: integer, Optional. The maximum number of photos to return. `pageSize` must be non-negative. If `pageSize` is zero or is not provided, the default page size of 100 is used. The number of photos returned in the response may be less than `pageSize` if the number of photos that belong to the user is less than `pageSize`.
358  pageToken: string, Optional. The nextPageToken value returned from a previous ListPhotos request, if any.
359  view: string, Required. Specifies if a download URL for the photos bytes should be returned in the Photos response.
360    Allowed values
361      BASIC - Server responses do not include the download URL for the photo bytes. The default value.
362      INCLUDE_DOWNLOAD_URL - Server responses include the download URL for the photo bytes.
363  x__xgafv: string, V1 error format.
364    Allowed values
365      1 - v1 error format
366      2 - v2 error format
367
368Returns:
369  An object of the form:
370
371    { # Response to list all photos that belong to a user.
372  &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
373  &quot;photos&quot;: [ # List of photos. The pageSize field in the request determines the number of items returned.
374    { # Photo is used to store 360 photos along with photo metadata.
375      &quot;captureTime&quot;: &quot;A String&quot;, # 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.
376      &quot;connections&quot;: [ # Optional. Connections to other photos. A connection represents the link from this photo to another photo.
377        { # A connection is the link from a source photo to a destination photo.
378          &quot;target&quot;: { # Identifier for a Photo. # Required. The destination of the connection from the containing photo to another photo.
379            &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
380          },
381        },
382      ],
383      &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.
384      &quot;mapsPublishStatus&quot;: &quot;A String&quot;, # Output only. Status in Google Maps, whether this photo was published or rejected.
385      &quot;photoId&quot;: { # 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.
386        &quot;id&quot;: &quot;A String&quot;, # A unique identifier for a photo.
387      },
388      &quot;places&quot;: [ # Optional. Places where this photo belongs.
389        { # Place metadata for an entity.
390          &quot;languageCode&quot;: &quot;A String&quot;, # 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.
391          &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the place, localized to the language_code.
392          &quot;placeId&quot;: &quot;A String&quot;, # Place identifier, as described in https://developers.google.com/places/place-id.
393        },
394      ],
395      &quot;pose&quot;: { # Raw pose measurement for an entity. # Optional. Pose of the photo.
396        &quot;accuracyMeters&quot;: 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.
397        &quot;altitude&quot;: 3.14, # Altitude of the pose in meters above WGS84 ellipsoid. NaN indicates an unmeasured quantity.
398        &quot;heading&quot;: 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 &gt;=0 and &lt;360. NaN indicates an unmeasured quantity.
399        &quot;latLngPair&quot;: { # 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.
400          &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
401          &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
402        },
403        &quot;level&quot;: { # Level information containing level number and its corresponding name. # Level (the floor in a building) used to configure vertical navigation.
404          &quot;name&quot;: &quot;A String&quot;, # 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.
405          &quot;number&quot;: 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.
406        },
407        &quot;pitch&quot;: 3.14, # Pitch, measured at the center of the photo in degrees. Value must be &gt;=-90 and &lt;= 90. A value of -90 means looking directly down, and a value of 90 means looking directly up. NaN indicates an unmeasured quantity.
408        &quot;roll&quot;: 3.14, # Roll, measured in degrees. Value must be &gt;= 0 and &lt;360. A value of 0 means level with the horizon. NaN indicates an unmeasured quantity.
409      },
410      &quot;shareLink&quot;: &quot;A String&quot;, # Output only. The share link for the photo.
411      &quot;thumbnailUrl&quot;: &quot;A String&quot;, # Output only. The thumbnail URL for showing a preview of the given photo.
412      &quot;transferStatus&quot;: &quot;A String&quot;, # Output only. Status of rights transfer on this photo.
413      &quot;uploadReference&quot;: { # Upload reference for media files. # Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.
414        &quot;uploadUrl&quot;: &quot;A String&quot;, # An upload reference should be unique for each user. It follows the form: &quot;https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}&quot;
415      },
416      &quot;uploadTime&quot;: &quot;A String&quot;, # Output only. Time when the image was uploaded.
417      &quot;viewCount&quot;: &quot;A String&quot;, # Output only. View count of the photo.
418    },
419  ],
420}</pre>
421</div>
422
423<div class="method">
424    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
425  <pre>Retrieves the next page of results.
426
427Args:
428  previous_request: The request for the previous page. (required)
429  previous_response: The response from the request for the previous page. (required)
430
431Returns:
432  A request object that you can call &#x27;execute()&#x27; on to request the next
433  page. Returns None if there are no more items in the collection.
434    </pre>
435</div>
436
437</body></html>