Package ai.nextbillion.maps.model
Class PlaceDetails.Review
java.lang.Object
ai.nextbillion.maps.model.PlaceDetails.Review
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- PlaceDetails
public static class PlaceDetails.Review
extends java.lang.Object
implements java.io.Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlaceDetails.Review.AspectRating -
Field Summary
Fields Modifier and Type Field Description PlaceDetails.Review.AspectRating[]aspectsA list of AspectRating objects, each of which provides a rating of a single attribute of the establishment.java.lang.StringauthorNameThe name of the user who submitted the review.java.net.URLauthorUrlThe URL of the user's Google+ profile, if available.java.lang.StringlanguageAn IETF language code indicating the language used in the user's review.java.lang.StringprofilePhotoUrlThe URL of the user's Google+ profile photo, if available.intratingThe user's overall rating for this place.java.lang.StringrelativeTimeDescriptionThe relative time that the review was submitted.java.lang.StringtextThe user's review.java.time.InstanttimeThe time that the review was submitted. -
Constructor Summary
Constructors Constructor Description Review() -
Method Summary
-
Field Details
-
aspects
A list of AspectRating objects, each of which provides a rating of a single attribute of the establishment.Note: this is a Premium Data field available to the Google Places API for Work customers.
-
authorName
public java.lang.String authorNameThe name of the user who submitted the review. Anonymous reviews are attributed to "A Google user". -
authorUrl
public java.net.URL authorUrlThe URL of the user's Google+ profile, if available. -
language
public java.lang.String languageAn IETF language code indicating the language used in the user's review. -
profilePhotoUrl
public java.lang.String profilePhotoUrlThe URL of the user's Google+ profile photo, if available. -
rating
public int ratingThe user's overall rating for this place. This is a whole number, ranging from 1 to 5. -
relativeTimeDescription
public java.lang.String relativeTimeDescriptionThe relative time that the review was submitted. -
text
public java.lang.String textThe user's review. When reviewing a location with Google Places, text reviews are considered optional. -
time
public java.time.Instant timeThe time that the review was submitted.
-
-
Constructor Details
-
Review
public Review()
-