Place Photo

GET https://places.googleapis.com/v1/places/{{placeId}}/photos/{{photoId}}/media?maxHeightPx=300&maxWidthPx=400

The Place Photo (New) service is a read-only API that allows you to add high quality photographic content to your application. The Place Photo service gives you access to the millions of photos stored in the Places database.

When you get place information using a Place Details, Nearby Search, or Text Search request, you can also request photo resources for relevant photographic content. Using the Photo service, you can then access the referenced photos and resize the image to the optimal size for your application.

Request Params

KeyDatatypeRequiredDescription
maxHeightPxnumberSpecifies the maximum desired height in pixels, of the image.

If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both the maxheight and maxwidth properties accept an integer between 1 and 4800.

You must specify either maxHeightPx, or maxWidthPx, or both. | | maxWidthPx | number | | Specifies the maximum desired width, in pixels, of the image.

If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both the maxheight and maxwidth properties accept an integer between 1 and 4800.

You must specify either maxHeightPx, or maxWidthPx, or both. |