Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      AddressComponent[] addressComponents
      A list of separate address components that comprise the address of this place.
      java.lang.String adrAddress
      A representation of the place's address in the adr microformat.
      PlaceDetails.AlternatePlaceIds[] altIds
      An optional array of alternative place IDs for the place, with a scope related to each alternative ID.
      java.lang.String businessStatus
      The status of the business (i.e.
      java.lang.String formattedAddress
      The human-readable address of this place.
      java.lang.String formattedPhoneNumber
      The place's phone number in its local format.
      Geometry geometry
      The location of the Place.
      java.lang.String[] htmlAttributions
      Attributions about this listing which must be displayed to the user.
      java.net.URL icon
      The URL of a suggested icon which may be displayed to the user when indicating this result on a map.
      java.lang.String internationalPhoneNumber
      The place's phone number in international format.
      java.lang.String name
      The human-readable name for the returned result.
      OpeningHours openingHours
      The opening hours for the place.
      boolean permanentlyClosed
      Whether the place has permanently closed.
      Photo[] photos
      A list of photos associated with this place, each containing a reference to an image.
      java.lang.String placeId
      A textual identifier that uniquely identifies this place.
      PlusCode plusCode
      The Plus Code location identifier for this place.
      PriceLevel priceLevel
      The price level of the place.
      float rating
      The place's rating, from 1.0 to 5.0, based on aggregated user reviews.
      PlaceDetails.Review[] reviews
      An array of up to five reviews.
      PlaceIdScope scope
      Deprecated.
      AddressType[] types
      Feature types describing the given result.
      java.net.URL url
      The URL of the official Google page for this place.
      int userRatingsTotal
      The number of user reviews for this place
      int utcOffset
      The number of minutes this place’s current timezone is offset from UTC.
      java.lang.String vicinity
      A simplified address for the place, including the street name, street number, and locality, but not the province/state, postal code, or country.
      java.net.URL website
      The authoritative website for this place, such as a business's homepage.
    • Constructor Summary

      Constructors 
      Constructor Description
      PlaceDetails()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • addressComponents

        public AddressComponent[] addressComponents
        A list of separate address components that comprise the address of this place.
      • adrAddress

        public java.lang.String adrAddress
        A representation of the place's address in the adr microformat.
      • formattedAddress

        public java.lang.String formattedAddress
        The human-readable address of this place.
      • formattedPhoneNumber

        public java.lang.String formattedPhoneNumber
        The place's phone number in its local format.
      • geometry

        public Geometry geometry
        The location of the Place.
      • icon

        public java.net.URL icon
        The URL of a suggested icon which may be displayed to the user when indicating this result on a map.
      • internationalPhoneNumber

        public java.lang.String internationalPhoneNumber
        The 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 name
        The human-readable name for the returned result.
      • openingHours

        public OpeningHours openingHours
        The opening hours for the place.
      • photos

        public Photo[] photos
        A list of photos associated with this place, each containing a reference to an image.
      • placeId

        public java.lang.String placeId
        A textual identifier that uniquely identifies this place.
      • scope

        @Deprecated
        public PlaceIdScope scope
        Deprecated.
        The scope of the placeId.
      • plusCode

        public PlusCode plusCode
        The Plus Code location identifier for this place.
      • permanentlyClosed

        public boolean permanentlyClosed
        Whether the place has permanently closed.
      • userRatingsTotal

        public int userRatingsTotal
        The number of user reviews for this place
      • altIds

        public PlaceDetails.AlternatePlaceIds[] altIds
        An optional array of alternative place IDs for the place, with a scope related to each alternative ID.
      • priceLevel

        public PriceLevel priceLevel
        The price level of the place. The exact amount indicated by a specific value will vary from region to region.
      • rating

        public float rating
        The place's rating, from 1.0 to 5.0, based on aggregated user reviews.
      • reviews

        public PlaceDetails.Review[] 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

        public AddressType[] types
        Feature types describing the given result.
      • url

        public java.net.URL url
        The 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 utcOffset
        The number of minutes this place’s current timezone is offset from UTC.
      • vicinity

        public java.lang.String vicinity
        A 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 website
        The authoritative website for this place, such as a business's homepage.
      • htmlAttributions

        public java.lang.String[] htmlAttributions
        Attributions about this listing which must be displayed to the user.
      • businessStatus

        public java.lang.String businessStatus
        The status of the business (i.e. operational, temporarily closed, etc.).
    • Constructor Detail

      • PlaceDetails

        public PlaceDetails()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object