google-maps-documentation

PlaceResult interface

google.maps.places.PlaceResult interface

Defines information about a Place.

Library

places

Properties
address_components
Type:  Array<GeocoderAddressComponent> optional
The collection of address components for this Place’s location. Only available with PlacesService.getDetails.
adr_address
Type:  string optional
The representation of the Place’s address in the adr microformat. Only available with PlacesService.getDetails.
aspects
Type:  Array<PlaceAspectRating> optional
The rated aspects of this Place, based on Google and Zagat user reviews. The ratings are on a scale of 0 to 30.
formatted_address
Type:  string optional
The Place’s full address.
formatted_phone_number
Type:  string optional
The Place’s phone number, formatted according to the number's regional convention. Only available with PlacesService.getDetails.
geometry
Type:  PlaceGeometry optional
The Place’s geometry-related information.
html_attributions
Type:  Array<string> optional
Attribution text to be displayed for this Place result. Available html_attributions are always returned regardless of what fields have been requested, and must be displayed.
icon
Type:  string optional
URL to an image resource that can be used to represent this Place’s category.
international_phone_number
Type:  string optional
The Place’s phone number in international format. International format includes the country code, and is prefixed with the plus (+) sign. Only available with PlacesService.getDetails.
name
Type:  string optional
The Place’s name. Note: In the case of user entered Places, this is the raw text, as typed by the user. Please exercise caution when using this data, as malicious users may try to use it as a vector for code injection attacks (See http://en.wikipedia.org/wiki/Code_injection).
opening_hours
Type:  PlaceOpeningHours optional
Defines when the Place opens or closes.
permanently_closed
Type:  boolean optional
A flag indicating whether the Place is permanently closed. If the Place is not permanently closed, the flag is not present in search or details responses.
photos
Type:  Array<PlacePhoto> optional
Photos of this Place. The collection will contain up to ten PlacePhoto objects.
place_id
Type:  string optional
A unique identifier for the Place.
plus_code
Type:  PlacePlusCode optional
Defines Open Location Codes or "plus codes" for the Place.
price_level
Type:  number optional
The price level of the Place, on a scale of 0 to 4. Price levels are interpreted as follows:
  • 0: Free
  • 1: Inexpensive
  • 2: Moderate
  • 3: Expensive
  • 4: Very Expensive
rating
Type:  number optional
A rating, between 1.0 to 5.0, based on user reviews of this Place.
reviews
Type:  Array<PlaceReview> optional
A list of reviews of this Place. Only available with PlacesService.getDetails.
types
Type:  Array<string> optional
An array of types for this Place (for example, ["political", "locality"] or ["restaurant", "establishment"]).
url
Type:  string optional
URL of the official Google page for this place. This is the Google-owned page that contains the best available information about the Place. Only available with PlacesService.getDetails.
user_ratings_total
Type:  number optional
The number of user ratings which contributed to this Place’s PlaceResult.rating.
utc_offset
Type:  number optional
The offset from UTC of the Place’s current timezone, in minutes. For example, Sydney, Australia in daylight savings is 11 hours ahead of UTC, so the utc_offset will be 660. For timezones behind UTC, the offset is negative. For example, the utc_offset is -60 for Cape Verde. Only available with PlacesService.getDetails.
utc_offset_minutes
Type:  number optional
The offset from UTC of the Place’s current timezone, in minutes. For example, Sydney, Australia in daylight savings is 11 hours ahead of UTC, so the utc_offset_minutes will be 660. For timezones behind UTC, the offset is negative. For example, the utc_offset_minutes is -60 for Cape Verde. Only available with PlacesService.getDetails.
vicinity
Type:  string optional
The simplified address for the Place, including the street name, street number, and locality, but not the province/state, postal code, or country. For example, Google's Sydney, Australia office has a vicinity value of "48 Pirrama Road, Pyrmont". Only available with PlacesService.getDetails.
website
Type:  string optional
The authoritative website for this Place, such as a business' homepage. Only available with PlacesService.getDetails.