Class PlacesSearchResult

  • All Implemented Interfaces:
    java.io.Serializable

    public class PlacesSearchResult
    extends java.lang.Object
    implements java.io.Serializable
    A single result in the search results returned from the Google Places API Web Service.

    Please see Place Search Results for more detail.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String businessStatus
      The status of the business (i.e.
      java.lang.String formattedAddress
      The human-readable address of this place.
      Geometry geometry
      Geometry information about the result, generally including the location (geocode) of the place and (optionally) the viewport identifying its general area of coverage.
      java.net.URL icon
      The URL of a recommended icon which may be displayed to the user when indicating this result.
      java.lang.String name
      The human-readable name for the returned result.
      OpeningHours openingHours
      Information on when the place is open.
      boolean permanentlyClosed
      Indicates that the place has permanently shut down.
      Photo[] photos
      Photo objects associated with this place, each containing a reference to an image.
      java.lang.String placeId
      A textual identifier that uniquely identifies a place.
      float rating
      The place's rating, from 1.0 to 5.0, based on aggregated user reviews.
      PlaceIdScope scope
      Deprecated.
      java.lang.String[] types
      Feature types describing the given result.
      int userRatingsTotal
      The number of user reviews for this place
      java.lang.String vicinity
      A feature name of a nearby location.
    • 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

      • formattedAddress

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

        public Geometry geometry
        Geometry information about the result, generally including the location (geocode) of the place and (optionally) the viewport identifying its general area of coverage.
      • name

        public java.lang.String name
        The human-readable name for the returned result. For establishment results, this is usually the business name.
      • icon

        public java.net.URL icon
        The URL of a recommended icon which may be displayed to the user when indicating this result.
      • placeId

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

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

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

        public java.lang.String[] types
        Feature types describing the given result.
      • openingHours

        public OpeningHours openingHours
        Information on when the place is open.
      • photos

        public Photo[] photos
        Photo objects associated with this place, each containing a reference to an image.
      • vicinity

        public java.lang.String vicinity
        A feature name of a nearby location.
      • permanentlyClosed

        public boolean permanentlyClosed
        Indicates that the place has permanently shut down.
      • userRatingsTotal

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

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

      • PlacesSearchResult

        public PlacesSearchResult()
    • Method Detail

      • toString

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