GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSPlaceReview
@interface GMSPlaceReview : NSObject
This class represents a single place review.
-
Instantiates a GMSPlaceReview
with detail properties.
Declaration
Swift
init(publishDate: Date, relativePublishDateDescription: String?, text: String?, textLanguageCode: String?, originalText: String?, originalTextLanguageCode: String?, rating: Float, authorAttribution: GMSPlaceAuthorAttribution?)
Objective-C
- (nonnull instancetype)
initWithPublishDate:(nonnull NSDate *)publishDate
relativePublishDateDescription:
(nullable NSString *)relativePublishDateDescription
text:(nullable NSString *)text
textLanguageCode:(nullable NSString *)textLanguageCode
originalText:(nullable NSString *)originalText
originalTextLanguageCode:(nullable NSString *)originalTextLanguageCode
rating:(float)rating
authorAttribution:
(nullable GMSPlaceAuthorAttribution *)authorAttribution;
Parameters
publishDate
|
The NSDate the review was published.
|
relativePublishDateDescription
|
The description of the publish date relative to the time of
the request.
|
text
|
The localized text of the review.
|
textLanguageCode
|
The language code of the localized review text.
|
originalText
|
The review text in its original language.
|
originalTextLanguageCode
|
The language code the review was originally written in.
|
rating
|
The 0.0 - 5.0 rating associated with the review.
|
authorAttribution
|
|
-
The NSDate
the review was published.
Declaration
Swift
var publishDate: Date { get }
Objective-C
@property (nonatomic, copy, readonly) NSDate *_Nonnull publishDate;
-
A formatted string expressing the review date/time to the current time. Specific to the language
and country (e.g. “6 months ago”).
Declaration
Swift
var relativePublishDateDescription: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *relativePublishDateDescription;
-
Declaration
Swift
var text: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *text;
-
The language code of the text of the review.
Declaration
Swift
var textLanguageCode: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *textLanguageCode;
-
The text of the review in its original language.
Declaration
Swift
var originalText: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *originalText;
-
The language code of the original text of the review.
Declaration
Swift
var originalTextLanguageCode: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *originalTextLanguageCode;
-
A whole number between 1.0 and 5.0, a.k.a. the number of stars.
Declaration
Swift
var rating: Double { get }
Objective-C
@property (nonatomic, readonly) double rating;
-
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\u003eGMSPlaceReview\u003c/code\u003e represents individual reviews associated with a place, containing details like publishing date, text, rating, and author information.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the review's textual content in both its original and potentially translated forms, along with corresponding language codes.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can retrieve the review's rating (1.0 - 5.0), publication timestamp, and a relative date description for display purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eauthorAttribution\u003c/code\u003e property gives access to information about the review's author, which needs to be displayed according to Google's attribution policies.\u003c/p\u003e\n"]]],[],null,["# GooglePlaces Framework Reference\n\nGMSPlaceReview\n==============\n\n @interface GMSPlaceReview : NSObject\n\nThis class represents a single place review.\n- `\n ``\n ``\n `\n\n ### [-initWithPublishDate:relativePublishDateDescription:text:textLanguageCode:originalText:originalTextLanguageCode:rating:authorAttribution:](#/c:objc(cs)GMSPlaceReview(im)initWithPublishDate:relativePublishDateDescription:text:textLanguageCode:originalText:originalTextLanguageCode:rating:authorAttribution:)\n\n `\n ` \n Instantiates a `GMSPlaceReview` with detail properties. \n\n #### Declaration\n\n Swift \n\n init(publishDate: Date, relativePublishDateDescription: String?, text: String?, textLanguageCode: String?, originalText: String?, originalTextLanguageCode: String?, rating: Float, authorAttribution: ../Classes/GMSPlaceAuthorAttribution.html?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithPublishDate:(nonnull NSDate *)publishDate\n relativePublishDateDescription:\n (nullable NSString *)relativePublishDateDescription\n text:(nullable NSString *)text\n textLanguageCode:(nullable NSString *)textLanguageCode\n originalText:(nullable NSString *)originalText\n originalTextLanguageCode:(nullable NSString *)originalTextLanguageCode\n rating:(float)rating\n authorAttribution:\n (nullable ../Classes/GMSPlaceAuthorAttribution.html *)authorAttribution;\n\n #### Parameters\n\n |----------------------------------------|----------------------------------------------------------------------------------------------------|\n | ` `*publishDate*` ` | The `NSDate` the review was published. |\n | ` `*relativePublishDateDescription*` ` | The description of the publish date relative to the time of the request. |\n | ` `*text*` ` | The localized text of the review. |\n | ` `*textLanguageCode*` ` | The language code of the localized review text. |\n | ` `*originalText*` ` | The review text in its original language. |\n | ` `*originalTextLanguageCode*` ` | The language code the review was originally written in. |\n | ` `*rating*` ` | The 0.0 - 5.0 rating associated with the review. |\n | ` `*authorAttribution*` ` | The [GMSPlaceAuthorAttribution](../Classes/GMSPlaceAuthorAttribution.html) of the review's author. |\n\n- `\n ``\n ``\n `\n\n ### [publishDate](#/c:objc(cs)GMSPlaceReview(py)publishDate)\n\n `\n ` \n The `NSDate` the review was published. \n\n #### Declaration\n\n Swift \n\n var publishDate: Date { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly) NSDate *_Nonnull publishDate;\n\n- `\n ``\n ``\n `\n\n ### [relativePublishDateDescription](#/c:objc(cs)GMSPlaceReview(py)relativePublishDateDescription)\n\n `\n ` \n A formatted string expressing the review date/time to the current time. Specific to the language\n and country (e.g. \"6 months ago\"). \n\n #### Declaration\n\n Swift \n\n var relativePublishDateDescription: String? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSString *relativePublishDateDescription;\n\n- `\n ``\n ``\n `\n\n ### [text](#/c:objc(cs)GMSPlaceReview(py)text)\n\n `\n ` \n The text of the review. \n\n #### Declaration\n\n Swift \n\n var text: String? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSString *text;\n\n- `\n ``\n ``\n `\n\n ### [textLanguageCode](#/c:objc(cs)GMSPlaceReview(py)textLanguageCode)\n\n `\n ` \n The language code of the text of the review. \n\n #### Declaration\n\n Swift \n\n var textLanguageCode: String? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSString *textLanguageCode;\n\n- `\n ``\n ``\n `\n\n ### [originalText](#/c:objc(cs)GMSPlaceReview(py)originalText)\n\n `\n ` \n The text of the review in its original language. \n\n #### Declaration\n\n Swift \n\n var originalText: String? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSString *originalText;\n\n- `\n ``\n ``\n `\n\n ### [originalTextLanguageCode](#/c:objc(cs)GMSPlaceReview(py)originalTextLanguageCode)\n\n `\n ` \n The language code of the original text of the review. \n\n #### Declaration\n\n Swift \n\n var originalTextLanguageCode: String? { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSString *originalTextLanguageCode;\n\n- `\n ``\n ``\n `\n\n ### [rating](#/c:objc(cs)GMSPlaceReview(py)rating)\n\n `\n ` \n A whole number between 1.0 and 5.0, a.k.a. the number of stars. \n\n #### Declaration\n\n Swift \n\n var rating: Double { get }\n\n Objective-C \n\n @property (nonatomic, readonly) double rating;\n\n- `\n ``\n ``\n `\n\n ### [authorAttribution](#/c:objc(cs)GMSPlaceReview(py)authorAttribution)\n\n `\n ` \n The attribution that must be shown to the user if this review is displayed.\n\n \u003cbr /\u003e\n\n See [Other\n Attribution Requirements](https://developers.google.com/maps/documentation/places/ios-sdk/policies#other_attribution_requirements) for more details. \n\n #### Declaration\n\n Swift \n\n var authorAttribution: ../Classes/GMSPlaceAuthorAttribution.html? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) ../Classes/GMSPlaceAuthorAttribution.html *authorAttribution;"]]