GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
@interface GMSPlacePhotoMetadata : NSObject
The metadata corresponding to a single photo associated with a place.
-
The data provider attribution string for this photo.
These are provided as a NSAttributedString, which may contain hyperlinks to the website of each
provider.
In general, these must be shown to the user if data from this GMSPlacePhotoMetadata
is shown,
as described in the Places SDK Terms of Service.
Declaration
Swift
@NSCopying var attributions: NSAttributedString? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSAttributedString *attributions;
-
The author attributions that must be shown to the user if this photo is displayed.
-
The maximum pixel size in which this photo is available.
Declaration
Swift
var maxSize: CGSize { get }
Objective-C
@property (nonatomic, readonly) CGSize maxSize;
-
Initializer is not available.
Declaration
Objective-C
- (nonnull instancetype)init;
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 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSPlacePhotoMetadata\u003c/code\u003e stores information about a single photo associated with a Google Maps Place, including attribution, author details, and maximum available size.\u003c/p\u003e\n"],["\u003cp\u003eIt's crucial to display the \u003ccode\u003eattributions\u003c/code\u003e to the user if the photo is used, complying with the Places SDK Terms of Service.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eauthorAttributions\u003c/code\u003e provide details about the photo's author and should also be shown when displaying the image.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emaxSize\u003c/code\u003e property indicates the largest dimensions at which the photo can be retrieved.\u003c/p\u003e\n"]]],[],null,["# GooglePlaces Framework Reference\n\nGMSPlacePhotoMetadata\n=====================\n\n @interface GMSPlacePhotoMetadata : NSObject\n\nThe metadata corresponding to a single photo associated with a place.\n- `\n ``\n ``\n `\n\n ### [attributions](#/c:objc(cs)GMSPlacePhotoMetadata(py)attributions)\n\n `\n ` \n The data provider attribution string for this photo.\n\n These are provided as a NSAttributedString, which may contain hyperlinks to the website of each\n provider.\n\n In general, these must be shown to the user if data from this `GMSPlacePhotoMetadata` is shown,\n as described in the Places SDK Terms of Service. \n\n #### Declaration\n\n Swift \n\n @NSCopying var attributions: NSAttributedString? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSAttributedString *attributions;\n\n- `\n ``\n ``\n `\n\n ### [authorAttributions](#/c:objc(cs)GMSPlacePhotoMetadata(py)authorAttributions)\n\n `\n ` \n The author attributions that must be shown to the user if this photo is displayed. \n\n #### Declaration\n\n Swift \n\n var authorAttributions: [../Classes/GMSPlaceAuthorAttribution.html]? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSArray\u003c../Classes/GMSPlaceAuthorAttribution.html *\u003e *authorAttributions;\n\n- `\n ``\n ``\n `\n\n ### [maxSize](#/c:objc(cs)GMSPlacePhotoMetadata(py)maxSize)\n\n `\n ` \n The maximum pixel size in which this photo is available. \n\n #### Declaration\n\n Swift \n\n var maxSize: CGSize { get }\n\n Objective-C \n\n @property (nonatomic, readonly) CGSize maxSize;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMSPlacePhotoMetadata(im)init)\n\n `\n ` \n Unavailable \n Initializer is not available. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;"]]