Resolve a place photo
goplaces_photoConvert Google Places photo resource names into media URLs, with optional dimensions and image download, using names from place details.
Instructions
Resolve a Google Places photo resource name into a photo media URL. Use with photo names returned by goplaces_details(include_photos=true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Photo resource name like 'places/PLACE_ID/photos/PHOTO_ID'. | |
| max_width_px | No | Maximum photo width in pixels. Required when max_height_px is omitted. | |
| include_image | No | Also download the photo and return it as an image the model can look at. Leave off when a URL is all the user needs. | |
| max_height_px | No | Maximum photo height in pixels. Required when max_width_px is omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| error | No | Present only on failure; the result is also flagged isError. | |
| photo_uri | No | Expiring Google-hosted photo URL. | |
| image_mime_type | No |