# FetchPhotoRequest

    @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
    struct FetchPhotoRequest

    extension FetchPhotoRequest : Sendable, SendableMetatype

The request for a specific placeID and place properties to include in the Place response.
- `
  ### [init(photo:maxSize:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/FetchPhotoRequest#/s:17GooglePlacesSwift17FetchPhotoRequestV5photo7maxSizeAcA0E0V_So6CGSizeVtcfc)

  ` Request object to use with `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Classes/PlacesClient.html` 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 `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Classes/PlacesClient.html` request callback will return an error.

  #### Declaration

  Swift

      @available(*, deprecated, message: "This struct is deprecated, please use the Place Details component (https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit﹚ instead.")
      init(photo: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Photo.html, maxSize: CGSize)

  #### Parameters

  |---|---|
  | ` photo ` | The `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/Photo.html` to request. |
  | ` maxSize ` | The maximum desired size in pixels of the image returned by the Place Photos service. |