photos_media
Creates, updates, deletes, gets or lists a photos_media
resource.
Overview
Name | photos_media |
Type | Resource |
Id | google.places.photos_media |
Fields
The following fields are returned by SELECT
queries:
- get_media
Successful response
Name | Datatype | Description |
---|---|---|
name | string | The resource name of a photo media in the format: places/{place_id}/photos/{photo_reference}/media . |
photoUri | string | A short-lived uri that can be used to render the photo. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_media | select | placesId , photosId | maxWidthPx , maxHeightPx , skipHttpRedirect | Get a photo media with a photo reference string. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
photosId | string | |
placesId | string | |
maxHeightPx | integer (int32) | |
maxWidthPx | integer (int32) | |
skipHttpRedirect | boolean |
SELECT
examples
- get_media
Get a photo media with a photo reference string.
SELECT
name,
photoUri
FROM google.places.photos_media
WHERE placesId = '{{ placesId }}' -- required
AND photosId = '{{ photosId }}' -- required
AND maxWidthPx = '{{ maxWidthPx }}'
AND maxHeightPx = '{{ maxHeightPx }}'
AND skipHttpRedirect = '{{ skipHttpRedirect }}';