class PlacesPhotos extends Resource (View source)

The "photos" collection of methods.

Typical usage is:

 $placesService = new Google\Service\MapsPlaces(...);
 $photos = $placesService->places_photos;

Methods

getMedia(string $name, array $optParams = [])

Get a photo media with a photo reference string. (photos.getMedia)

Details

GoogleMapsPlacesV1PhotoMedia getMedia(string $name, array $optParams = [])

Get a photo media with a photo reference string. (photos.getMedia)

Parameters

string $name

Required. The resource name of a photo media in the format: places/{place_id}/photos/{photo_reference}/media. The resource name of a photo as returned in a Place object's photos.name field comes with the format places/{place_id}/photos/{photo_reference}. You need to append /media at the end of the photo resource to get the photo media resource name.

array $optParams

Optional parameters.

Return Value

GoogleMapsPlacesV1PhotoMedia

Exceptions

Exception