Place class
google.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.
Constructor | |
---|---|
Place |
Place(options) Parameters:
|
Static Methods | |
---|---|
searchByText |
searchByText(request) Parameters:
Text query based place search. |
searchNearby |
searchNearby(request) Parameters:
Search for nearby places. |
Properties | |
---|---|
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. |
googleMapsLinks |
Type:
GoogleMapsLinks optional Links to trigger different Google Maps actions. |
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 |
hasMenuForChildren |
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 |
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
|
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 |
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. |
|