- Resource: Place
- LocalizedText
- AddressComponent
- PlusCode
- LatLng
- Viewport
- Review
- AuthorAttribution
- OpeningHours
- Period
- Point
- Date
- SecondaryHoursType
- SpecialDay
- Photo
- BusinessStatus
- PriceLevel
- Attribution
- PaymentOptions
- ParkingOptions
- SubDestination
- AccessibilityOptions
- FuelOptions
- FuelPrice
- FuelType
- Money
- EVChargeOptions
- ConnectorAggregation
- EVConnectorType
- GenerativeSummary
- References
- AreaSummary
- ContentBlock
- Methods
Resource: Place
All the information representing a Place.
JSON representation |
---|
{ "name": string, "id": string, "displayName": { object ( |
Fields | |
---|---|
name |
This Place's resource name, in |
id |
The unique identifier of a place. |
displayName |
The localized name of the place, suitable as a short human-readable description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc. |
types[] |
A set of type tags for this result. For example, "political" and "locality". For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types |
primaryType |
The primary type of the given result. This type must one of the Places API supported types. For example, "restaurant", "cafe", "airport", etc. A place can only have a single primary type. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types |
primaryTypeDisplayName |
The display name of the primary type, localized to the request language if applicable. For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types |
nationalPhoneNumber |
A human-readable phone number for the place, in national format. |
internationalPhoneNumber |
A human-readable phone number for the place, in international format. |
formattedAddress |
A full, human-readable address for this place. |
shortFormattedAddress |
A short, human-readable address for this place. |
addressComponents[] |
Repeated components for each locality level. Note the following facts about the addressComponents[] array: - The array of address components may contain more components than the formattedAddress. - The array does not necessarily include all the political entities that contain an address, apart from those included in the formattedAddress. To retrieve all the political entities that contain a specific address, you should use reverse geocoding, passing the latitude/longitude of the address as a parameter to the request. - The format of the response is not guaranteed to remain the same between requests. In particular, the number of addressComponents varies based on the address requested and can change over time for the same address. A component can change position in the array. The type of the component can change. A particular component may be missing in a later response. |
plusCode |
Plus code of the place location lat/long. |
location |
The position of this place. |
viewport |
A viewport suitable for displaying the place on an average-sized map. |
rating |
A rating between 1.0 and 5.0, based on user reviews of this place. |
googleMapsUri |
A URL providing more information about this place. |
websiteUri |
The authoritative website for this place, e.g. a business' homepage. Note that for places that are part of a chain (e.g. an IKEA store), this will usually be the website for the individual store, not the overall chain. |
reviews[] |
List of reviews about this place, sorted by relevance. A maximum of 5 reviews can be returned. |
regularOpeningHours |
The regular hours of operation. |
photos[] |
Information (including references) about photos of this place. A maximum of 10 photos can be returned. |
adrFormatAddress |
The place's address in adr microformat: http://microformats.org/wiki/adr. |
businessStatus |
The business status for the place. |
priceLevel |
Price level of the place. |
attributions[] |
A set of data provider that must be shown with this result. |
iconMaskBaseUri |
A truncated URL to an icon mask. User can access different icon type by appending type suffix to the end (eg, ".svg" or ".png"). |
iconBackgroundColor |
Background color for icon_mask in hex format, e.g. #909CE1. |
currentOpeningHours |
The hours of operation for the next seven days (including today). The time period starts at midnight on the date of the request and ends at 11:59 pm six days later. This field includes the specialDays subfield of all hours, set for dates that have exceptional hours. |
currentSecondaryOpeningHours[] |
Contains an array of entries for the next seven days including information about secondary hours of a business. Secondary hours are different from a business's main hours. For example, a restaurant can specify drive through hours or delivery hours as its secondary hours. This field populates the type subfield, which draws from a predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place. This field includes the specialDays subfield of all hours, set for dates that have exceptional hours. |
regularSecondaryOpeningHours[] |
Contains an array of entries for information about regular secondary hours of a business. Secondary hours are different from a business's main hours. For example, a restaurant can specify drive through hours or delivery hours as its secondary hours. This field populates the type subfield, which draws from a predefined list of opening hours types (such as DRIVE_THROUGH, PICKUP, or TAKEOUT) based on the types of the place. |
editorialSummary |
Contains a summary of the place. A summary is comprised of a textual overview, and also includes the language code for these if applicable. Summary text must be presented as-is and can not be modified or altered. |
paymentOptions |
Payment options the place accepts. If a payment option data is not available, the payment option field will be unset. |
parkingOptions |
Options of parking provided by the place. |
subDestinations[] |
A list of sub destinations related to the place. |
fuelOptions |
The most recent information about fuel options in a gas station. This information is updated regularly. |
evChargeOptions |
Information of ev charging options. |
generativeSummary |
Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the place. |
areaSummary |
Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the area that the place is in. |
utcOffsetMinutes |
Number of minutes this place's timezone is currently offset from UTC. This is expressed in minutes to support timezones that are offset by fractions of an hour, e.g. X hours and 15 minutes. |
userRatingCount |
The total number of reviews (with or without text) for this place. |
takeout |
Specifies if the business supports takeout. |
delivery |
Specifies if the business supports delivery. |
dineIn |
Specifies if the business supports indoor or outdoor seating options. |
curbsidePickup |
Specifies if the business supports curbside pickup. |
reservable |
Specifies if the place supports reservations. |
servesBreakfast |
Specifies if the place serves breakfast. |
servesLunch |
Specifies if the place serves lunch. |
servesDinner |
Specifies if the place serves dinner. |
servesBeer |
Specifies if the place serves beer. |
servesWine |
Specifies if the place serves wine. |
servesBrunch |
Specifies if the place serves brunch. |
servesVegetarianFood |
Specifies if the place serves vegetarian food. |
outdoorSeating |
Place provides outdoor seating. |
liveMusic |
Place provides live music. |
menuForChildren |
Place has a children's menu. |
servesCocktails |
Place serves cocktails. |
servesDessert |
Place serves dessert. |
servesCoffee |
Place serves coffee. |
goodForChildren |
Place is good for children. |
allowsDogs |
Place allows dogs. |
restroom |
Place has restroom. |
goodForGroups |
Place accommodates groups. |
goodForWatchingSports |
Place is suitable for watching sports. |
accessibilityOptions |
Information about the accessibility options a place offers. |
LocalizedText
Localized variant of a text in a particular language.
JSON representation |
---|
{ "text": string, "languageCode": string } |
Fields | |
---|---|
text |
Localized string in the language corresponding to |
languageCode |
The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. |
AddressComponent
The structured components that form the formatted address, if this information is available.
JSON representation |
---|
{ "longText": string, "shortText": string, "types": [ string ], "languageCode": string } |
Fields | |
---|---|
longText |
The full text description or name of the address component. For example, an address component for the country Australia may have a long_name of "Australia". |
shortText |
An abbreviated textual name for the address component, if available. For example, an address component for the country of Australia may have a short_name of "AU". |
types[] |
An array indicating the type(s) of the address component. |
languageCode |
The language used to format this components, in CLDR notation. |
PlusCode
Plus code (http://plus.codes) is a location reference with two formats: global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, and compound code, replacing the prefix with a reference location.
JSON representation |
---|
{ "globalCode": string, "compoundCode": string } |
Fields | |
---|---|
globalCode |
Place's global (full) code, such as "9FWM33GV+HQ", representing an 1/8000 by 1/8000 degree area (~14 by 14 meters). |
compoundCode |
Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing the suffix of the global code and replacing the prefix with a formatted name of a reference entity. |
LatLng
An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.
JSON representation |
---|
{ "latitude": number, "longitude": number } |
Fields | |
---|---|
latitude |
The latitude in degrees. It must be in the range [-90.0, +90.0]. |
longitude |
The longitude in degrees. It must be in the range [-180.0, +180.0]. |
Viewport
A latitude-longitude viewport, represented as two diagonally opposite low
and high
points. A viewport is considered a closed region, i.e. it includes its boundary. The latitude bounds must range between -90 to 90 degrees inclusive, and the longitude bounds must range between -180 to 180 degrees inclusive. Various cases include:
If
low
=high
, the viewport consists of that single point.If
low.longitude
>high.longitude
, the longitude range is inverted (the viewport crosses the 180 degree longitude line).If
low.longitude
= -180 degrees andhigh.longitude
= 180 degrees, the viewport includes all longitudes.If
low.longitude
= 180 degrees andhigh.longitude
= -180 degrees, the longitude range is empty.If
low.latitude
>high.latitude
, the latitude range is empty.
Both low
and high
must be populated, and the represented box cannot be empty (as specified by the definitions above). An empty viewport will result in an error.
For example, this viewport fully encloses New York City:
{ "low": { "latitude": 40.477398, "longitude": -74.259087 }, "high": { "latitude": 40.91618, "longitude": -73.70018 } }
JSON representation |
---|
{ "low": { object ( |
Fields | |
---|---|
low |
Required. The low point of the viewport. |
high |
Required. The high point of the viewport. |
Review
Information about a review of a place.
JSON representation |
---|
{ "name": string, "relativePublishTimeDescription": string, "text": { object ( |
Fields | |
---|---|
name |
A reference representing this place review which may be used to look up this place review again (also called the API "resource" name: |
relativePublishTimeDescription |
A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country. |
text |
The localized text of the review. |
originalText |
The review text in its original language. |
rating |
A number between 1.0 and 5.0, also called the number of stars. |
authorAttribution |
This review's author. |
publishTime |
Timestamp for the review. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
AuthorAttribution
Information about the author of the UGC data. Used in Photo
, and Review
.
JSON representation |
---|
{ "displayName": string, "uri": string, "photoUri": string } |
Fields | |
---|---|
displayName |
|
uri |
|
photoUri |
|
OpeningHours
Information about business hour of the place.
JSON representation |
---|
{ "periods": [ { object ( |
Fields | |
---|---|
periods[] |
The periods that this place is open during the week. The periods are in chronological order, starting with Sunday in the place-local timezone. An empty (but not absent) value indicates a place that is never open, e.g. because it is closed temporarily for renovations. |
weekdayDescriptions[] |
Localized strings describing the opening hours of this place, one string for each day of the week. Will be empty if the hours are unknown or could not be converted to localized text. Example: "Sun: 18:00–06:00" |
secondaryHoursType |
A type string used to identify the type of secondary hours. |
specialDays[] |
Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day. Set for currentOpeningHours and currentSecondaryOpeningHours if there are exceptional hours. |
openNow |
Whether the opening hours period is currently active. For regular opening hours and current opening hours, this field means whether the place is open. For secondary opening hours and current secondary opening hours, this field means whether the secondary hours of this place is active. |
Period
A period the place remains in openNow status.
JSON representation |
---|
{ "open": { object ( |
Fields | |
---|---|
open |
The time that the place starts to be open. |
close |
The time that the place starts to be closed. |
Point
Status changing points.
JSON representation |
---|
{
"date": {
object ( |
Fields | |
---|---|
date |
Date in the local timezone for the place. |
truncated |
Whether or not this endpoint was truncated. Truncation occurs when the real hours are outside the times we are willing to return hours between, so we truncate the hours back to these boundaries. This ensures that at most 24 * 7 hours from midnight of the day of the request are returned. |
day |
A day of the week, as an integer in the range 0-6. 0 is Sunday, 1 is Monday, etc. |
hour |
The hour in 2 digits. Ranges from 00 to 23. |
minute |
The minute in 2 digits. Ranges from 00 to 59. |
Date
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following:
- A full date, with non-zero year, month, and day values.
- A month and day, with a zero year (for example, an anniversary).
- A year on its own, with a zero month and a zero day.
- A year and month, with a zero day (for example, a credit card expiration date).
Related types:
google.type.TimeOfDay
google.type.DateTime
google.protobuf.Timestamp
JSON representation |
---|
{ "year": integer, "month": integer, "day": integer } |
Fields | |
---|---|
year |
Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. |
month |
Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. |
day |
Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. |
SecondaryHoursType
A type used to identify the type of secondary hours.
Enums | |
---|---|
SECONDARY_HOURS_TYPE_UNSPECIFIED |
Default value when secondary hour type is not specified. |
DRIVE_THROUGH |
The drive-through hour for banks, restaurants, or pharmacies. |
HAPPY_HOUR |
The happy hour. |
DELIVERY |
The delivery hour. |
TAKEOUT |
The takeout hour. |
KITCHEN |
The kitchen hour. |
BREAKFAST |
The breakfast hour. |
LUNCH |
The lunch hour. |
DINNER |
The dinner hour. |
BRUNCH |
The brunch hour. |
PICKUP |
The pickup hour. |
ACCESS |
The access hours for storage places. |
SENIOR_HOURS |
The special hours for seniors. |
ONLINE_SERVICE_HOURS |
The online service hours. |
SpecialDay
Structured information for special days that fall within the period that the returned opening hours cover. Special days are days that could impact the business hours of a place, e.g. Christmas day.
JSON representation |
---|
{
"date": {
object ( |
Fields | |
---|---|
date |
The date of this special day. |
Photo
Information about a photo of a place.
JSON representation |
---|
{
"name": string,
"widthPx": integer,
"heightPx": integer,
"authorAttributions": [
{
object ( |
Fields | |
---|---|
name |
Identifier. A reference representing this place photo which may be used to look up this place photo again (also called the API "resource" name: |
widthPx |
The maximum available width, in pixels. |
heightPx |
The maximum available height, in pixels. |
authorAttributions[] |
This photo's authors. |
BusinessStatus
Business status for the place.
Enums | |
---|---|
BUSINESS_STATUS_UNSPECIFIED |
Default value. This value is unused. |
OPERATIONAL |
The establishment is operational, not necessarily open now. |
CLOSED_TEMPORARILY |
The establishment is temporarily closed. |
CLOSED_PERMANENTLY |
The establishment is permanently closed. |
PriceLevel
Price level of the place.
Enums | |
---|---|
PRICE_LEVEL_UNSPECIFIED |
Place price level is unspecified or unknown. |
PRICE_LEVEL_FREE |
Place provides free services. |
PRICE_LEVEL_INEXPENSIVE |
Place provides inexpensive services. |
PRICE_LEVEL_MODERATE |
Place provides moderately priced services. |
PRICE_LEVEL_EXPENSIVE |
Place provides expensive services. |
PRICE_LEVEL_VERY_EXPENSIVE |
Place provides very expensive services. |
Attribution
Information about data providers of this place.
JSON representation |
---|
{ "provider": string, "providerUri": string } |
Fields | |
---|---|
provider |
Name of the Place's data provider. |
providerUri |
URI to the Place's data provider. |
PaymentOptions
Payment options the place accepts.
JSON representation |
---|
{ "acceptsCreditCards": boolean, "acceptsDebitCards": boolean, "acceptsCashOnly": boolean, "acceptsNfc": boolean } |
Fields | |
---|---|
acceptsCreditCards |
Place accepts credit cards as payment. |
acceptsDebitCards |
Place accepts debit cards as payment. |
acceptsCashOnly |
Place accepts cash only as payment. Places with this attribute may still accept other payment methods. |
acceptsNfc |
Place accepts NFC payments. |
ParkingOptions
Information about parking options for the place. A parking lot could support more than one option at the same time.
JSON representation |
---|
{ "freeParkingLot": boolean, "paidParkingLot": boolean, "freeStreetParking": boolean, "paidStreetParking": boolean, "valetParking": boolean, "freeGarageParking": boolean, "paidGarageParking": boolean } |
Fields | |
---|---|
freeParkingLot |
Place offers free parking lots. |
paidParkingLot |
Place offers paid parking lots. |
freeStreetParking |
Place offers free street parking. |
paidStreetParking |
Place offers paid street parking. |
valetParking |
Place offers valet parking. |
freeGarageParking |
Place offers free garage parking. |
paidGarageParking |
Place offers paid garage parking. |
SubDestination
Place resource name and id of sub destinations that relate to the place. For example, different terminals are different destinations of an airport.
JSON representation |
---|
{ "name": string, "id": string } |
Fields | |
---|---|
name |
The resource name of the sub destination. |
id |
The place id of the sub destination. |
AccessibilityOptions
Information about the accessibility options a place offers.
JSON representation |
---|
{ "wheelchairAccessibleParking": boolean, "wheelchairAccessibleEntrance": boolean, "wheelchairAccessibleRestroom": boolean, "wheelchairAccessibleSeating": boolean } |
Fields | |
---|---|
wheelchairAccessibleParking |
Place offers wheelchair accessible parking. |
wheelchairAccessibleEntrance |
Places has wheelchair accessible entrance. |
wheelchairAccessibleRestroom |
Place has wheelchair accessible restroom. |
wheelchairAccessibleSeating |
Place has wheelchair accessible seating. |
FuelOptions
The most recent information about fuel options in a gas station. This information is updated regularly.
JSON representation |
---|
{
"fuelPrices": [
{
object ( |
Fields | |
---|---|
fuelPrices[] |
The last known fuel price for each type of fuel this station has. There is one entry per fuel type this station has. Order is not important. |
FuelPrice
Fuel price information for a given type.
JSON representation |
---|
{ "type": enum ( |
Fields | |
---|---|
type |
The type of fuel. |
price |
The price of the fuel. |
updateTime |
The time the fuel price was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
FuelType
Types of fuel.
Enums | |
---|---|
FUEL_TYPE_UNSPECIFIED |
Unspecified fuel type. |
DIESEL |
Diesel fuel. |
REGULAR_UNLEADED |
Regular unleaded. |
MIDGRADE |
Midgrade. |
PREMIUM |
Premium. |
SP91 |
SP 91. |
SP91_E10 |
SP 91 E10. |
SP92 |
SP 92. |
SP95 |
SP 95. |
SP95_E10 |
SP95 E10. |
SP98 |
SP 98. |
SP99 |
SP 99. |
SP100 |
SP 100. |
LPG |
LPG. |
E80 |
E 80. |
E85 |
E 85. |
METHANE |
Methane. |
BIO_DIESEL |
Bio-diesel. |
TRUCK_DIESEL |
Truck diesel. |
Money
Represents an amount of money with its currency type.
JSON representation |
---|
{ "currencyCode": string, "units": string, "nanos": integer } |
Fields | |
---|---|
currencyCode |
The three-letter currency code defined in ISO 4217. |
units |
The whole units of the amount. For example if |
nanos |
Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If |
EVChargeOptions
Information about the EV Charge Station hosted in Place. Terminology follows https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could charge one car at a time. One port has one or more connectors. One station has one or more ports.
JSON representation |
---|
{
"connectorCount": integer,
"connectorAggregation": [
{
object ( |
Fields | |
---|---|
connectorCount |
Number of connectors at this station. However, because some ports can have multiple connectors but only be able to charge one car at a time (e.g.) the number of connectors may be greater than the total number of cars which can charge simultaneously. |
connectorAggregation[] |
A list of EV charging connector aggregations that contain connectors of the same type and same charge rate. |
ConnectorAggregation
EV charging information grouped by [type, maxChargeRateKw]. Shows EV charge aggregation of connectors that have the same type and max charge rate in kw.
JSON representation |
---|
{
"type": enum ( |
Fields | |
---|---|
type |
The connector type of this aggregation. |
maxChargeRateKw |
The static max charging rate in kw of each connector in the aggregation. |
count |
Number of connectors in this aggregation. |
availabilityLastUpdateTime |
The timestamp when the connector availability information in this aggregation was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
availableCount |
Number of connectors in this aggregation that are currently available. |
outOfServiceCount |
Number of connectors in this aggregation that are currently out of service. |
EVConnectorType
See http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6872107 for additional information/context on EV charging connector types.
Enums | |
---|---|
EV_CONNECTOR_TYPE_UNSPECIFIED |
Unspecified connector. |
EV_CONNECTOR_TYPE_OTHER |
Other connector types. |
EV_CONNECTOR_TYPE_J1772 |
J1772 type 1 connector. |
EV_CONNECTOR_TYPE_TYPE_2 |
IEC 62196 type 2 connector. Often referred to as MENNEKES. |
EV_CONNECTOR_TYPE_CHADEMO |
CHAdeMO type connector. |
EV_CONNECTOR_TYPE_CCS_COMBO_1 |
Combined Charging System (AC and DC). Based on SAE. Type-1 J-1772 connector |
EV_CONNECTOR_TYPE_CCS_COMBO_2 |
Combined Charging System (AC and DC). Based on Type-2 Mennekes connector |
EV_CONNECTOR_TYPE_TESLA |
The generic TESLA connector. This is NACS in the North America but can be non-NACS in other parts of the world (e.g. CCS Combo 2 (CCS2) or GB/T). This value is less representative of an actual connector type, and more represents the ability to charge a Tesla brand vehicle at a Tesla owned charging station. |
EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T |
GB/T type corresponds to the GB/T standard in China. This type covers all GB_T types. |
EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET |
Unspecified wall outlet. |
GenerativeSummary
Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details.
AI-generated summary of the place.
JSON representation |
---|
{ "overview": { object ( |
Fields | |
---|---|
overview |
The overview of the place. |
description |
The detailed description of the place. |
references |
References that are used to generate the summary description. |
References
Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details.
Reference that the generative content is related to.
JSON representation |
---|
{
"reviews": [
{
object ( |
Fields | |
---|---|
reviews[] |
Reviews that serve as references. |
places[] |
The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names. |
AreaSummary
Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details.
AI-generated summary of the area that the place is in.
JSON representation |
---|
{
"contentBlocks": [
{
object ( |
Fields | |
---|---|
contentBlocks[] |
Content blocks that compose the area summary. Each block has a separate topic about the area. |
ContentBlock
A block of content that can be served individually.
JSON representation |
---|
{ "topic": string, "content": { object ( |
Fields | |
---|---|
topic |
The topic of the content, for example "overview" or "restaurant". |
content |
Content related to the topic. |
references |
Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. References that are related to this block of content. |
Methods |
|
---|---|
|
Returns predictions for the given input. |
|
Get the details of a place based on its resource name, which is a string in the places/{place_id} format. |
|
Search for places near locations. |
|
Text query based place search. |