Package ai.nextbillion.maps.model
Class PlaceDetails
java.lang.Object
ai.nextbillion.maps.model.PlaceDetails
- All Implemented Interfaces:
java.io.Serializable
public class PlaceDetails
extends java.lang.Object
implements java.io.Serializable
The result of a Place Details request. A Place Details request returns more comprehensive
information about the indicated place such as its complete address, phone number, user rating,
and reviews.
See Place Details Results for more detail.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlaceDetails.AlternatePlaceIdsDeprecated.static classPlaceDetails.Review -
Field Summary
Fields Modifier and Type Field Description AddressComponent[]addressComponentsA list of separate address components that comprise the address of this place.java.lang.StringadrAddressA representation of the place's address in the adr microformat.PlaceDetails.AlternatePlaceIds[]altIdsAn optional array of alternative place IDs for the place, with a scope related to each alternative ID.java.lang.StringbusinessStatusThe status of the business (i.e.java.lang.StringformattedAddressThe human-readable address of this place.java.lang.StringformattedPhoneNumberThe place's phone number in its local format.GeometrygeometryThe location of the Place.java.lang.String[]htmlAttributionsAttributions about this listing which must be displayed to the user.java.net.URLiconThe URL of a suggested icon which may be displayed to the user when indicating this result on a map.java.lang.StringinternationalPhoneNumberThe place's phone number in international format.java.lang.StringnameThe human-readable name for the returned result.OpeningHoursopeningHoursThe opening hours for the place.booleanpermanentlyClosedWhether the place has permanently closed.Photo[]photosA list of photos associated with this place, each containing a reference to an image.java.lang.StringplaceIdA textual identifier that uniquely identifies this place.PlusCodeplusCodeThe Plus Code location identifier for this place.PriceLevelpriceLevelThe price level of the place.floatratingThe place's rating, from 1.0 to 5.0, based on aggregated user reviews.PlaceDetails.Review[]reviewsAn array of up to five reviews.PlaceIdScopescopeDeprecated.AddressType[]typesFeature types describing the given result.java.net.URLurlThe URL of the official Google page for this place.intuserRatingsTotalThe number of user reviews for this placeintutcOffsetThe number of minutes this place’s current timezone is offset from UTC.java.lang.StringvicinityA simplified address for the place, including the street name, street number, and locality, but not the province/state, postal code, or country.java.net.URLwebsiteThe authoritative website for this place, such as a business's homepage. -
Constructor Summary
Constructors Constructor Description PlaceDetails() -
Method Summary
Modifier and Type Method Description java.lang.StringtoString()
-
Field Details
-
addressComponents
A list of separate address components that comprise the address of this place. -
adrAddress
public java.lang.String adrAddressA representation of the place's address in the adr microformat. -
formattedAddress
public java.lang.String formattedAddressThe human-readable address of this place. -
formattedPhoneNumber
public java.lang.String formattedPhoneNumberThe place's phone number in its local format. -
geometry
The location of the Place. -
icon
public java.net.URL iconThe URL of a suggested icon which may be displayed to the user when indicating this result on a map. -
internationalPhoneNumber
public java.lang.String internationalPhoneNumberThe place's phone number in international format. International format includes the country code, and is prefixed with the plus (+) sign. -
name
public java.lang.String nameThe human-readable name for the returned result. -
openingHours
The opening hours for the place. -
photos
A list of photos associated with this place, each containing a reference to an image. -
placeId
public java.lang.String placeIdA textual identifier that uniquely identifies this place. -
scope
Deprecated.The scope of the placeId. -
plusCode
The Plus Code location identifier for this place. -
permanentlyClosed
public boolean permanentlyClosedWhether the place has permanently closed. -
userRatingsTotal
public int userRatingsTotalThe number of user reviews for this place -
altIds
An optional array of alternative place IDs for the place, with a scope related to each alternative ID. -
priceLevel
The price level of the place. The exact amount indicated by a specific value will vary from region to region. -
rating
public float ratingThe place's rating, from 1.0 to 5.0, based on aggregated user reviews. -
reviews
An array of up to five reviews. If a language parameter was specified in the Place Details request, the Places Service will bias the results to prefer reviews written in that language. -
types
Feature types describing the given result. -
url
public java.net.URL urlThe URL of the official Google page for this place. This will be the establishment's Google+ page if the Google+ page exists, otherwise it will be the Google-owned page that contains the best available information about the place. Applications must link to or embed this page on any screen that shows detailed results about the place to the user. -
utcOffset
public int utcOffsetThe number of minutes this place’s current timezone is offset from UTC. -
vicinity
public java.lang.String vicinityA simplified address for the place, including the street name, street number, and locality, but not the province/state, postal code, or country. -
website
public java.net.URL websiteThe authoritative website for this place, such as a business's homepage. -
htmlAttributions
public java.lang.String[] htmlAttributionsAttributions about this listing which must be displayed to the user. -
businessStatus
public java.lang.String businessStatusThe status of the business (i.e. operational, temporarily closed, etc.).
-
-
Constructor Details
-
PlaceDetails
public PlaceDetails()
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-