Skip to main content

photos_media

Creates, updates, deletes, gets or lists a photos_media resource.

Overview

Namephotos_media
TypeResource
Idgoogle.places.photos_media

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe resource name of a photo media in the format: places/{place_id}/photos/{photo_reference}/media.
photoUristringA short-lived uri that can be used to render the photo.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_mediaselectplacesId, photosIdmaxWidthPx, maxHeightPx, skipHttpRedirectGet 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.

NameDatatypeDescription
photosIdstring
placesIdstring
maxHeightPxinteger (int32)
maxWidthPxinteger (int32)
skipHttpRedirectboolean

SELECT examples

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 }}';