Skip to content

Latest commit

 

History

History
178 lines (92 loc) · 7.01 KB

PlaceResult.md

File metadata and controls

178 lines (92 loc) · 7.01 KB

See html formatted version

PlaceResult interface

google.maps.places.PlaceResult interface

Defines information about a Place.

Library

places

Properties

undefined

Type:  Array<GeocoderAddressComponent> optional

The collection of address components for this Place’s location. Only available with PlacesService.getDetails.

undefined

Type:  string optional

The representation of the Place’s address in the adr microformat. Only available with PlacesService.getDetails.

undefined

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.

undefined

Type:  BusinessStatus optional

A flag indicating the operational status of the Place, if it is a business (indicates whether the place is operational, or closed either temporarily or permanently). If no data is available, the flag is not present in search or details responses.

undefined

Type:  string optional

The Place’s full address.

undefined

Type:  string optional

The Place’s phone number, formatted according to the number's regional convention. Only available with PlacesService.getDetails.

undefined

Type:  PlaceGeometry optional

The Place’s geometry-related information.

undefined

Type:  Array 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.

undefined

Type:  string optional

URL to an image resource that can be used to represent this Place’s category.

undefined

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.

undefined

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).

undefined

Type:  PlaceOpeningHours optional

Defines when the Place opens or closes.

undefined

Type:  boolean optional

A flag indicating whether the Place is closed, either permanently or temporarily. If the place is operational, or if no data is available, the flag is absent from the response.

undefined

Type:  Array<PlacePhoto> optional

Photos of this Place. The collection will contain up to ten PlacePhoto objects.

undefined

Type:  string optional

A unique identifier for the Place.

undefined

Type:  PlacePlusCode optional

Defines Open Location Codes or "plus codes" for the Place.

undefined

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

undefined

Type:  number optional

A rating, between 1.0 to 5.0, based on user reviews of this Place.

undefined

Type:  Array<PlaceReview> optional

A list of reviews of this Place. Only available with PlacesService.getDetails.

undefined

Type:  Array optional

An array of types for this Place (for example, ["political", "locality"] or ["restaurant", "establishment"]).

undefined

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.

undefined

Type:  number optional

The number of user ratings which contributed to this Place’s PlaceResult.rating.

undefined

Notice: utc_offset is deprecated as of November 2019 and will be turned off in November 2020. Use PlaceResult.utc_offset_minutes instead.

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.

undefined

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.

undefined

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.

undefined

Type:  string optional

The authoritative website for this Place, such as a business' homepage. Only available with PlacesService.getDetails.