GooglePlacesSwift Framework Reference
FetchPhotoRequest
The request for a specific placeID and place properties to include in the Place response.
-
Request object to use with PlacesClient
to fetch a photo.
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. CGSize height and width should be set
to an integer between 1 and 4800. If not, the PlacesClient
request callback will return
an error.
Declaration
Swift
init(photo: Photo, maxSize: CGSize)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-06 UTC.
[null,null,["Last updated 2024-05-06 UTC."],[[["`FetchPhotoRequest` is a struct used to request a photo for a specific place, along with its properties."],["It initializes with a `Photo` object and a `maxSize` of type `CGSize` to define the desired photo dimensions."],["The returned photo will either be the original if smaller than `maxSize` or scaled down while maintaining aspect ratio."],["`maxSize` height and width must be within the range of 1 to 4800, otherwise, the request will result in an error."]]],[]]