Stay organized with collections Save and categorize content based on your preferences.
Place classgoogle.maps.places.Place
class
This class implements PlaceOptions
.
Access by calling const {Place} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
accessibilityOptions
Type: AccessibilityOptions optional
Accessibility options of this Place. undefined
if the accessibility options data have not been called for from the server.
addressComponents
Type: Array<AddressComponent> optional
The collection of address components for this Place’s location. Empty object if there is no known address data. undefined
if the address data has not been called for from the server.
adrFormatAddress
Type: string optional
The representation of the Place’s address in the
adr microformat.
allowsDogs
Type: boolean optional
attributions
Type: Array<Attribution> optional
Data providers that must be shown for the Place.
businessStatus
Type: BusinessStatus optional
The location's operational status. null
if there is no known status. undefined
if the status data has not been loaded from the server.
displayName
Type: string optional
The location's display name. null
if there is no name. undefined
if the name data has not been loaded from the server.
displayNameLanguageCode
Type: string optional
The language of the location's display name. null
if there is no name. undefined
if the name data has not been loaded from the server.
editorialSummary
Type: string optional
The editorial summary for this place. null
if there is no editorial summary. undefined
if this field has not yet been requested.
editorialSummaryLanguageCode
Type: string optional
The language of the editorial summary for this place. null
if there is no editorial summary. undefined
if this field has not yet been requested.
evChargeOptions
Type: EVChargeOptions optional
EV Charge options provided by the place. undefined
if the EV charge options have not been called for from the server.
formattedAddress
Type: string optional
The locations’s full address.
fuelOptions
Type: FuelOptions optional
Fuel options provided by the place. undefined
if the fuel options have not been called for from the server.
googleMapsURI
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.
hasCurbsidePickup
Type: boolean optional
Whether a place has curbside pickup. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
hasDelivery
Type: boolean optional
Whether a place has delivery. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
hasDineIn
Type: boolean optional
Whether a place has dine in. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
hasLiveMusic
Type: boolean optional
hasOutdoorSeating
Type: boolean optional
hasRestroom
Type: boolean optional
hasTakeout
Type: boolean optional
Whether a place has takeout. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
iconBackgroundColor
Type: string optional
The default HEX color code for the place's category.
id
Type: string
The unique place id.
internationalPhoneNumber
Type: string optional
The Place’s phone number in international format. International format includes the country code, and is prefixed with the plus (+) sign.
isGoodForChildren
Type: boolean optional
isGoodForGroups
Type: boolean optional
isGoodForWatchingSports
Type: boolean optional
isReservable
Type: boolean optional
Whether a place is reservable. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
location
Type: LatLng optional
The Place’s position.
nationalPhoneNumber
Type: string optional
The Place’s phone number, formatted according to the
number's regional convention.
parkingOptions
Type: ParkingOptions optional
Options of parking provided by the place. undefined
if the parking options data have not been called for from the server.
paymentOptions
Type: PaymentOptions optional
Payment options provided by the place. undefined
if the payment options data have not been called for from the server.
photos
Type: Array<Photo> optional
Photos of this Place. The collection will contain up to ten
Photo
objects.
plusCode
Type: PlusCode optional
postalAddress
Type: PostalAddress optional
priceLevel
Type: PriceLevel optional
The price level of the Place. This property can return any of the following values
Free
Inexpensive
Moderate
Expensive
Very Expensive
priceRange
Type: PriceRange optional
The price range for this Place. endPrice
could be unset, which indicates a range without upper bound (e.g. "More than $100").
primaryType
Type: string optional
The location's primary type. null
if there is no type. undefined
if the type data has not been loaded from the server.
primaryTypeDisplayName
Type: string optional
The location's primary type display name. null
if there is no type. undefined
if the type data has not been loaded from the server.
primaryTypeDisplayNameLanguageCode
Type: string optional
The language of the location's primary type display name. null
if there is no type. undefined
if the type data has not been loaded from the server.
rating
Type: number optional
A rating, between 1.0 to 5.0, based on user reviews of this Place.
regularOpeningHours
Type: OpeningHours optional
requestedLanguage
Type: string optional
The requested language for this place.
requestedRegion
Type: string optional
The requested region for this place.
reviews
Type: Array<Review> optional
A list of reviews for this Place.
servesBeer
Type: boolean optional
Whether a place serves beer. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
servesBreakfast
Type: boolean optional
Whether a place serves breakfast. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
servesBrunch
Type: boolean optional
Whether a place serves brunch. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
servesCocktails
Type: boolean optional
servesCoffee
Type: boolean optional
servesDessert
Type: boolean optional
servesDinner
Type: boolean optional
Whether a place serves dinner. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
servesLunch
Type: boolean optional
Whether a place serves lunch. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
servesVegetarianFood
Type: boolean optional
Whether a place serves vegetarian food. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
servesWine
Type: boolean optional
Whether a place serves wine. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown. Returns 'undefined' if this field has not yet been requested.
svgIconMaskURI
Type: string optional
URI to the svg image mask resource that can be used to represent a place’s category.
types
Type: Array<string> optional
An array of
types for this Place(for example,
["political", "locality"]
or
["restaurant", "establishment"]
).
userRatingCount
Type: number optional
The number of user ratings which contributed to this Place’s
Place.rating
.
utcOffsetMinutes
Type: number optional
The offset from UTC of the Place’s current timezone, in minutes. For example, Austrialian Eastern Standard Time (GMT+10) 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.
viewport
Type: LatLngBounds optional
The preferred viewport when displaying this Place on a map.
websiteURI
Type: string optional
The authoritative website for this Place, such as a business' homepage.
openingHours
Deprecated: Use Place.regularOpeningHours
instead.
OpeningHours optional
hasWiFi
Deprecated: This field was accidentally documented, but has never actually been populated.
Type: boolean optional
fetchFields
fetchFields(options)
options
: FetchFieldsRequest
Promise<{place:Place}>
getNextOpeningTime
Notice: Available only in the v=beta channel.
getNextOpeningTime([date])
date
: Date optional
Promise<Date optional>
Calculates the Date representing the next OpeningHoursTime. Returns undefined if the data is insufficient to calculate the result, or this place is not operational.
isOpen
Notice: Available only in the v=beta channel.
isOpen([date])
date
: Date optional
Defaults to now.Promise<boolean optional>
Check if the place is open at the given datetime. Resolves with undefined
if the known data for the location is insufficient to calculate this, e.g. if the opening hours are unregistered.
toJSON
toJSON()
Parameters: None
Return Value:Object
a JSON object with all the requested Place properties.
PlaceOptions interfacegoogle.maps.places.PlaceOptions
interface
Options for constructing a Place.
Propertiesid
Type: string
The unique place id.
requestedLanguage optional
Type: string optional
A language identifier for the language in which details should be returned. See the
list of supported languages.
requestedRegion optional
Type: string optional
A region code of the user's region. This can affect which photos may be returned, and possibly other things. The region code accepts a
ccTLD ("top-level domain")two-character value. Most ccTLD codes are identical to ISO 3166-1 codes, with some notable exceptions. For example, the United Kingdom's ccTLD is "uk" (
.co.uk
) while its ISO 3166-1 code is "gb" (technically for the entity of "The United Kingdom of Great Britain and Northern Ireland").
AccessibilityOptions classgoogle.maps.places.AccessibilityOptions
class
Access by calling const {AccessibilityOptions} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
hasWheelchairAccessibleEntrance
Type: boolean optional
Whether a place has a wheelchair accessible entrance. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
hasWheelchairAccessibleParking
Type: boolean optional
Whether a place has wheelchair accessible parking. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
hasWheelchairAccessibleRestroom
Type: boolean optional
Whether a place has a wheelchair accessible restroom. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
hasWheelchairAccessibleSeating
Type: boolean optional
Whether a place offers wheelchair accessible seating. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
AddressComponent classgoogle.maps.places.AddressComponent
class
Address component for the Place's location.
Access by calling const {AddressComponent} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
longText
Type: string optional
The full text of the address component.
shortText
Type: string optional
The abbreviated, short text of the given address component.
types
Type: Array<string>
An array of strings denoting the type of this address component. A list of valid types can be found
here.
Attribution classgoogle.maps.places.Attribution
class
Information about a data provider for a Place.
Access by calling const {Attribution} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
provider
Type: string optional
Name of the Place's data provider.
providerURI
Type: string optional
URI to the Place's data provider.
google.maps.places.AuthorAttribution
class
Information about the author of user-generated content.
Access by calling const {AuthorAttribution} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
displayName
Type: string
Author's name for this result.
photoURI
Type: string optional
Author's photo URI for this result. This may not always be available.
uri
Type: string optional
Author's profile URI for this result.
ConnectorAggregation classgoogle.maps.places.ConnectorAggregation
class
EV charging information, aggregated for connectors of the same type and the same charge rate.
Access by calling const {ConnectorAggregation} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
availabilityLastUpdateTime
Type: Date optional
The time when the connector availability information in this aggregation was last updated.
availableCount
Type: number optional
Number of connectors in this aggregation that are currently available.
count
Type: number
Number of connectors in this aggregation.
maxChargeRateKw
Type: number
The static max charging rate in kw of each connector of the aggregation.
outOfServiceCount
Type: number optional
Number of connectors in this aggregation that are currently out of service.
type
Type: EVConnectorType optional
The connector type of this aggregation.
EVChargeOptions classgoogle.maps.places.EVChargeOptions
class
Information about the EV charging station hosted in the place.
Access by calling const {EVChargeOptions} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
connectorAggregations
Type: Array<ConnectorAggregation>
A list of EV charging connector aggregations that contain connectors of the same type and same charge rate.
connectorCount
Type: number
Number of connectors at this station. Because some ports can have multiple connectors but only be able to charge one car at a time, the number of connectors may be greater than the total number of cars which can charge simultaneously.
EVConnectorType constantsgoogle.maps.places.EVConnectorType
constants
EV charging connector types.
Access by calling const {EVConnectorType} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
CCS_COMBO_1
Combined Charging System (AC and DC). Based on SAE Type-1 J-1772 connector. CCS_COMBO_2
Combined Charging System (AC and DC). Based on Type-2 Mennekes connector. CHADEMO
CHAdeMO type connector. J1772
J1772 type 1 connector. NACS
The North American Charging System (NACS), standardized as SAE J3400. OTHER
Other connector types. 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. TYPE_2
IEC 62196 type 2 connector. Often referred to as MENNEKES. UNSPECIFIED_GB_T
GB/T type corresponds to the GB/T standard in China. This type covers all GB_T types. UNSPECIFIED_WALL_OUTLET
Unspecified wall outlet. EVSearchOptions interface
google.maps.places.EVSearchOptions
interface
EV-related options that can be specified for a place search request.
PropertiesconnectorTypes optional
Type: Array<EVConnectorType> optional
The list of preferred EV connector types. A place that does not support any of the listed connector types is filtered out.
minimumChargingRateKw optional
Type: number optional
Minimum required charging rate in kilowatts. A place with a charging rate less than the specified rate is filtered out.
FetchFieldsRequest interfacegoogle.maps.places.FetchFieldsRequest
interface
Options for fetching Place fields.
Propertiesfields
Type: Array<string>
List of fields to be fetched.
FuelOptions classgoogle.maps.places.FuelOptions
class
The most recent information about fuel options in a gas station. This information is updated regularly.
Access by calling const {FuelOptions} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
fuelPrices
Type: Array<FuelPrice>
A list of fuel prices for each type of fuel this station has, one entry per fuel type.
Money classgoogle.maps.places.Money
class
A representation of an amount of money with its currency type.
Access by calling const {Money} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
currencyCode
Type: string
The three-letter currency code, defined in ISO 4217.
nanos
Type: number
Number of nano (10^-9) units of the amount.
units
Type: number
The whole units of the amount. For example, if
Money.currencyCode
is "USD", then 1 unit is 1 US dollar.
MethodstoString
toString()
Parameters: None
Return Value: string
Returns a human-readable representation of the amount of money with its currency symbol.
OpeningHours classgoogle.maps.places.OpeningHours
class
Information about business hours of a Place.
Access by calling const {OpeningHours} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
periods
Type: Array<OpeningHoursPeriod>
Opening periods covering each day of the week, starting from Sunday, in chronological order. Does not include days where the Place is not open.
weekdayDescriptions
Type: Array<string>
An array of seven strings representing the formatted opening hours for each day of the week. The Places Service will format and localize the opening hours appropriately for the current language. The ordering of the elements in this array depends on the language. Some languages start the week on Monday, while others start on Sunday.
OpeningHoursPoint classgoogle.maps.places.OpeningHoursPoint
class
A point where the Place changes its opening status.
Access by calling const {OpeningHoursPoint} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
day
Type: number
The day of the week, as a number in the range [0, 6], starting on Sunday. For example, 2 means Tuesday.
hour
Type: number
The hour of the OpeningHoursPoint.time as a number, in the range [0, 23]. This will be reported in the Place’s time zone.
minute
Type: number
The minute of the OpeningHoursPoint.time as a number, in the range [0, 59]. This will be reported in the Place’s time zone.
ParkingOptions classgoogle.maps.places.ParkingOptions
class
Access by calling const {ParkingOptions} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
hasFreeGarageParking
Type: boolean optional
Whether a place offers free garage parking. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
hasFreeParkingLot
Type: boolean optional
Whether a place offers free parking lots. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
hasFreeStreetParking
Type: boolean optional
Whether a place offers free street parking. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
hasPaidGarageParking
Type: boolean optional
Whether a place offers paid garage parking. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
hasPaidParkingLot
Type: boolean optional
Whether a place offers paid parking lots. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
hasPaidStreetParking
Type: boolean optional
Whether a place offers paid street parking. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
hasValetParking
Type: boolean optional
Whether a place offers valet parking. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
PaymentOptions classgoogle.maps.places.PaymentOptions
class
Access by calling const {PaymentOptions} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
acceptsCashOnly
Type: boolean optional
Whether a place only accepts payment via cash. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
acceptsCreditCards
Type: boolean optional
Whether a place accepts payment via credit card. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
acceptsDebitCards
Type: boolean optional
Whether a place accepts payment via debit card. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
acceptsNFC
Type: boolean optional
Whether a place accepts payment via NFC. Returns 'true' or 'false' if the value is known. Returns 'null' if the value is unknown.
Photo classgoogle.maps.places.Photo
class
Information about a photo of a Place.
Access by calling const {Photo} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
getURI
getURI([options])
options
: PhotoOptions optional
Return Value: string
Returns the image URL corresponding to the specified options.
PlusCode classgoogle.maps.places.PlusCode
class
Plus code for the Place. See https://plus.codes/ for more information.
Access by calling const {PlusCode} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
compoundCode
Type: string optional
A plus code with a 1/8000th of a degree by 1/8000th of a degree area where the first four characters (the area code) are dropped and replaced with a locality description. For example, "9G8F+5W Zurich, Switzerland".
globalCode
Type: string optional
A plus code with a 1/8000th of a degree by 1/8000th of a degree area. For example, "8FVC9G8F+5W".
PostalAddress classgoogle.maps.places.PostalAddress
class
Represents a postal address (e.g. for a postal service to deliver items to). Note: PostalAddress is used by the JavaScript API to instantiate objects that represent data returned by the Web Service.
This class implements PostalAddressLiteral
.
Access by calling const {PostalAddress} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
google.maps.places.PostalAddressLiteral
interface
Data for hydrating a PostalAddress.
PriceRange classgoogle.maps.places.PriceRange
class
The price range associated with a Place. endPrice
could be unset, which indicates a range without upper bound (e.g. "More than $100").
Access by calling const {PriceRange} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
endPrice
Type: Money optional
The upper end of the price range (inclusive). Price should be lower than this amount.
startPrice
Type: Money
The low end of the price range (inclusive). Price should be at or above this amount.
Review classgoogle.maps.places.Review
class
Information about a review of a Place.
Access by calling const {Review} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
authorAttribution
Type: AuthorAttribution optional
The reviewer.
flagContentURI
Type: string optional
A link where user can flag a problem with the review.
googleMapsURI
Type: string optional
A link to show the review on Google Maps.
publishTime
Type: Date optional
rating
Type: number optional
The rating of this review, a number between 1.0 and 5.0 (inclusive).
relativePublishTimeDescription
Type: string optional
A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country. For example `"a month ago"'.
text
Type: string optional
The text of a review.
textLanguageCode
Type: string optional
An IETF language code indicating the language in which this review is written. Note that this code includes only the main language tag without any secondary tag indicating country or region. For example, all the English reviews are tagged as 'en'
rather than 'en-AU' or 'en-UK'.
google.maps.places.SearchByTextRequest
interface
Request interface for Place.searchByText
.
evSearchOptions optional
Type: EVSearchOptions optional
EV-related options that can be specified for a place search request.
fields optional
Type: Array<string> optional
Required when you use this request with
Place.searchByText
. Fields to be included in the response,
which will be billed for. If
['*']
is passed in, all available fields will be returned and billed for (this is not recommended for production deployments). You can request any property in the
Place
class as a field.
includedType optional
Type: string optional
The requested place type. Full list of types supported:
https://developers.google.com/maps/documentation/places/web-service/place-types. Only one included type is supported. See
SearchByTextRequest.useStrictTypeFiltering
isOpenNow optional
Type: boolean optional
Default: false
Used to restrict the search to places that are currently open.
language optional
Type: string optional
Place details will be displayed with the preferred language if available. Will default to the browser's language preference. Current list of supported languages:
https://developers.google.com/maps/faq#languagesupport.
locationBias optional
Type: LatLng|LatLngLiteral|LatLngBounds|LatLngBoundsLiteral|CircleLiteral|Circle optional
The region to search. This location serves as a bias which means results around given location might be returned. Cannot be set along with locationRestriction.
locationRestriction optional
Type: LatLngBounds|LatLngBoundsLiteral optional
The region to search. This location serves as a restriction which means results outside given location will not be returned. Cannot be set along with locationBias.
maxResultCount optional
Type: number optional
Maximum number of results to return. It must be between 1 and 20, inclusively.
minRating optional
Type: number optional
Filter out results whose average user rating is strictly less than this limit. A valid value must be an float between 0 and 5 (inclusively) at a 0.5 cadence i.e. [0, 0.5, 1.0, ... , 5.0] inclusively. The input rating will be rounded up to the nearest 0.5(ceiling). For instance, a rating of 0.6 will eliminate all results with a less than 1.0 rating.
priceLevels optional
Type: Array<PriceLevel> optional
Used to restrict the search to places that are marked as certain price levels. Any combinations of price levels can be chosen. Defaults to all price levels.
queryoptional
Deprecated: Please use textQuery instead
Type: string optional
rankByoptional
Deprecated: Please use rankPreference instead.
Notice: Available only in the v=beta channel.
Type:SearchByTextRankPreference optional
rankPreference optional
Type: SearchByTextRankPreference optional
Default: SearchByTextRankPreference.RELEVANCE
How results will be ranked in the response.
region optional
Type: string optional
The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see
https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.
textQuery optional
Type: string optional
Required when you do not use
SearchByTextRequest.query
. The text query for textual search.
useStrictTypeFiltering optional
Type: boolean optional
Default: false
Used to set strict type filtering for
SearchByTextRequest.includedType
. If set to true, only results of the same type will be returned.
google.maps.places.SearchByTextRankPreference
constants
RankPreference enum for SearchByTextRequest.
Access by calling const {SearchByTextRankPreference} = await google.maps.importLibrary("places")
.
See Libraries in the Maps JavaScript API.
google.maps.places.SearchNearbyRequest
interface
Request interface for Place.searchNearby
. For more information on the request, see Places API reference.
locationRestriction
Type: Circle|CircleLiteral
The region to search, specified as a circle with center and radius. Results outside given location are not returned.
excludedPrimaryTypes optional
Type: Array<string> optional
Excluded primary place types. See the
full list of types supported. A place can only have a single primary type. Up to 50 types may be specified. If you specify the same type in both
included
and
excluded
lists, an INVALID_ARGUMENT error is returned.
excludedTypes optional
Type: Array<string> optional
Excluded place types. See the
full list of types supported. A place can have many different place types. Up to 50 types may be specified. If you specify the same type in both
included
and
excluded
lists, an INVALID_ARGUMENT error is returned.
fields optional
Type: Array<string> optional
Required when you use this request with
Place.searchNearby
. Fields to be included in the response,
which will be billed for. If
['*']
is passed in, all available fields will be returned and billed for (this is not recommended for production deployments). You can request any property in the
Place
class as a field.
includedPrimaryTypes optional
Type: Array<string> optional
Included primary place types. See the
full list of types supported. A place can only have a single primary type. Up to 50 types may be specified. If you specify the same type in both
included
and
excluded
lists, an INVALID_ARGUMENT error is returned.
includedTypes optional
Type: Array<string> optional
Included place types. See the
full list of types supported. A place can have many different place types. Up to 50 types may be specified. If you specify the same type in both
included
and
excluded
lists, an INVALID_ARGUMENT error is returned.
language optional
Type: string optional
Place details will be displayed with the preferred language if available. Will default to the browser's language preference. Current list of supported languages:
https://developers.google.com/maps/faq#languagesupport.
maxResultCount optional
Type: number optional
Maximum number of results to return. For acceptable values and default, see
Places API reference.
rankPreference optional
Type: SearchNearbyRankPreference optional
Default: SearchNearbyRankPreference.POPULARITY
How results will be ranked in the response.
region optional
Type: string optional
The Unicode country/region code (CLDR) of the location where the request is coming from. This parameter is used to display the place details, like region-specific place name, if available. The parameter can affect results based on applicable law. For more information, see
https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html. Note that 3-digit region codes are not currently supported.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-10 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4