# GMSPlaceReview

Deprecated

This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.


    @interface GMSPlaceReview : NSObject

This class represents a single place review.
- `
  ### [-initWithPublishDate:relativePublishDateDescription:text:textLanguageCode:originalText:originalTextLanguageCode:rating:authorAttribution:](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(im)initWithPublishDate:relativePublishDateDescription:text:textLanguageCode:originalText:originalTextLanguageCode:rating:authorAttribution:)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  Instantiates a `GMSPlaceReview` with detail properties.

  #### Declaration

  Swift

      init(publishDate: Date, relativePublishDateDescription: String?, text: String?, textLanguageCode: String?, originalText: String?, originalTextLanguageCode: String?, rating: Float, authorAttribution: https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceAuthorAttribution.html?)

  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 https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceAuthorAttribution.html *)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 `https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceAuthorAttribution.html` of the review's author. |

- `
  ### [-initWithPublishDate:relativePublishDateDescription:text:textLanguageCode:originalText:originalTextLanguageCode:rating:authorAttribution:visitYear:visitMonth:](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(im)initWithPublishDate:relativePublishDateDescription:text:textLanguageCode:originalText:originalTextLanguageCode:rating:authorAttribution:visitYear:visitMonth:)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  Instantiates a `GMSPlaceReview` with detail properties.

  #### Declaration

  Swift

      init(publishDate: Date, relativePublishDateDescription: String?, text: String?, textLanguageCode: String?, originalText: String?, originalTextLanguageCode: String?, rating: Float, authorAttribution: https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceAuthorAttribution.html?, visitYear: UInt, visitMonth: UInt)

  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 https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceAuthorAttribution.html *)authorAttribution
                               visitYear:(NSUInteger)visitYear
                              visitMonth:(NSUInteger)visitMonth;

  #### 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 `https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceAuthorAttribution.html` of the review's author. |
  | ` visitYear ` | The year the user visited the place. |
  | ` visitMonth ` | The month the user visited the place. |

- `
  ### [publishDate](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(py)publishDate)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  The `NSDate` the review was published.

  #### Declaration

  Swift

      var publishDate: Date { get }

  Objective-C

      @property (nonatomic, copy, readonly) NSDate *_Nonnull publishDate;

- `
  ### [relativePublishDateDescription](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(py)relativePublishDateDescription)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  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;

- `
  ### [text](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(py)text)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  The text of the review.

  #### Declaration

  Swift

      var text: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSString *text;

- `
  ### [textLanguageCode](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(py)textLanguageCode)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  The language code of the text of the review.

  #### Declaration

  Swift

      var textLanguageCode: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSString *textLanguageCode;

- `
  ### [originalText](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(py)originalText)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  The text of the review in its original language.

  #### Declaration

  Swift

      var originalText: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSString *originalText;

- `
  ### [originalTextLanguageCode](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(py)originalTextLanguageCode)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  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;

- `
  ### [rating](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(py)rating)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  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;

- `
  ### [authorAttribution](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(py)authorAttribution)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  The attribution that must be shown to the user if this review is displayed.

  <br />

  See [Other Attribution Requirements](https://developers.google.com/maps/documentation/places/ios-sdk/policies#other_attribution_requirements) for more details.

  #### Declaration

  Swift

      var authorAttribution: https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceAuthorAttribution.html? { get }

  Objective-C

      @property (nonatomic, readonly, nullable) https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceAuthorAttribution.html *authorAttribution;

- `
  ### [visitYear](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(py)visitYear)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  The year when the user visited the place. 0 is unset.

  #### Declaration

  Swift

      var visitYear: UInt { get }

  Objective-C

      @property (nonatomic, readonly) NSUInteger visitYear;

- `
  ### [visitMonth](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Classes/GMSPlaceReview#/c:objc(cs)GMSPlaceReview(py)visitMonth)

  ` Deprecated

  This class is deprecated, please use the Place Details component (<https://developers.google.com/maps/documentation/places/ios-sdk/place-details-ui-kit>) instead.
  The month when the review author visited the place. This value is 1-based, so 1 is January and 12 is December. 0 is unset.

  #### Declaration

  Swift

      var visitMonth: UInt { get }

  Objective-C

      @property (nonatomic, readonly) NSUInteger visitMonth;