Class Place
All the information representing a Place.
Namespace: Google.Maps.Places.V1
Assembly: Google.Maps.Places.V1.dll
Syntax
public sealed class Place : IMessage<Place>, IEquatable<Place>, IDeepCloneable<Place>, IBufferMessage, IMessage
Constructors
Place()
Declaration
public Place()
Place(Place)
Declaration
public Place(Place other)
Parameters
Type | Name | Description |
---|---|---|
Place | other |
Properties
AccessibilityOptions
Information about the accessibility options a place offers.
Declaration
public Place.Types.AccessibilityOptions AccessibilityOptions { get; set; }
Property Value
Type | Description |
---|---|
Place.Types.AccessibilityOptions |
AddressComponents
Repeated components for each locality level. Note the following facts about the address_components[] array:
- The array of address components may contain more components than the formatted_address.
- The array does not necessarily include all the political entities that contain an address, apart from those included in the formatted_address. 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 address_components 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.
Declaration
public RepeatedField<Place.Types.AddressComponent> AddressComponents { get; }
Property Value
Type | Description |
---|---|
RepeatedField<Place.Types.AddressComponent> |
AdrFormatAddress
The place's address in adr microformat: http://microformats.org/wiki/adr.
Declaration
public string AdrFormatAddress { get; set; }
Property Value
Type | Description |
---|---|
string |
AllowsDogs
Place allows dogs.
Declaration
public bool AllowsDogs { get; set; }
Property Value
Type | Description |
---|---|
bool |
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.
Declaration
public Place.Types.AreaSummary AreaSummary { get; set; }
Property Value
Type | Description |
---|---|
Place.Types.AreaSummary |
Attributions
A set of data provider that must be shown with this result.
Declaration
public RepeatedField<Place.Types.Attribution> Attributions { get; }
Property Value
Type | Description |
---|---|
RepeatedField<Place.Types.Attribution> |
BusinessStatus
The business status for the place.
Declaration
public Place.Types.BusinessStatus BusinessStatus { get; set; }
Property Value
Type | Description |
---|---|
Place.Types.BusinessStatus |
CurbsidePickup
Specifies if the business supports curbside pickup.
Declaration
public bool CurbsidePickup { get; set; }
Property Value
Type | Description |
---|---|
bool |
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 special_days subfield of all hours, set for dates that have exceptional hours.
Declaration
public Place.Types.OpeningHours CurrentOpeningHours { get; set; }
Property Value
Type | Description |
---|---|
Place.Types.OpeningHours |
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 special_days subfield of all hours, set for dates that have exceptional hours.
Declaration
public RepeatedField<Place.Types.OpeningHours> CurrentSecondaryOpeningHours { get; }
Property Value
Type | Description |
---|---|
RepeatedField<Place.Types.OpeningHours> |
Delivery
Specifies if the business supports delivery.
Declaration
public bool Delivery { get; set; }
Property Value
Type | Description |
---|---|
bool |
DineIn
Specifies if the business supports indoor or outdoor seating options.
Declaration
public bool DineIn { get; set; }
Property Value
Type | Description |
---|---|
bool |
DisplayName
The localized name of the place, suitable as a short human-readable description. For example, "Google Sydney", "Starbucks", "Pyrmont", etc.
Declaration
public LocalizedText DisplayName { get; set; }
Property Value
Type | Description |
---|---|
LocalizedText |
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.
Declaration
public LocalizedText EditorialSummary { get; set; }
Property Value
Type | Description |
---|---|
LocalizedText |
EvChargeOptions
Information of ev charging options.
Declaration
public EVChargeOptions EvChargeOptions { get; set; }
Property Value
Type | Description |
---|---|
EVChargeOptions |
FormattedAddress
A full, human-readable address for this place.
Declaration
public string FormattedAddress { get; set; }
Property Value
Type | Description |
---|---|
string |
FuelOptions
The most recent information about fuel options in a gas station. This information is updated regularly.
Declaration
public FuelOptions FuelOptions { get; set; }
Property Value
Type | Description |
---|---|
FuelOptions |
GenerativeSummary
Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details.
AI-generated summary of the place.
Declaration
public Place.Types.GenerativeSummary GenerativeSummary { get; set; }
Property Value
Type | Description |
---|---|
Place.Types.GenerativeSummary |
GoodForChildren
Place is good for children.
Declaration
public bool GoodForChildren { get; set; }
Property Value
Type | Description |
---|---|
bool |
GoodForGroups
Place accommodates groups.
Declaration
public bool GoodForGroups { get; set; }
Property Value
Type | Description |
---|---|
bool |
GoodForWatchingSports
Place is suitable for watching sports.
Declaration
public bool GoodForWatchingSports { get; set; }
Property Value
Type | Description |
---|---|
bool |
GoogleMapsUri
A URL providing more information about this place.
Declaration
public string GoogleMapsUri { get; set; }
Property Value
Type | Description |
---|---|
string |
HasAllowsDogs
Gets whether the "allows_dogs" field is set
Declaration
public bool HasAllowsDogs { get; }
Property Value
Type | Description |
---|---|
bool |
HasCurbsidePickup
Gets whether the "curbside_pickup" field is set
Declaration
public bool HasCurbsidePickup { get; }
Property Value
Type | Description |
---|---|
bool |
HasDelivery
Gets whether the "delivery" field is set
Declaration
public bool HasDelivery { get; }
Property Value
Type | Description |
---|---|
bool |
HasDineIn
Gets whether the "dine_in" field is set
Declaration
public bool HasDineIn { get; }
Property Value
Type | Description |
---|---|
bool |
HasGoodForChildren
Gets whether the "good_for_children" field is set
Declaration
public bool HasGoodForChildren { get; }
Property Value
Type | Description |
---|---|
bool |
HasGoodForGroups
Gets whether the "good_for_groups" field is set
Declaration
public bool HasGoodForGroups { get; }
Property Value
Type | Description |
---|---|
bool |
HasGoodForWatchingSports
Gets whether the "good_for_watching_sports" field is set
Declaration
public bool HasGoodForWatchingSports { get; }
Property Value
Type | Description |
---|---|
bool |
HasLiveMusic
Gets whether the "live_music" field is set
Declaration
public bool HasLiveMusic { get; }
Property Value
Type | Description |
---|---|
bool |
HasMenuForChildren
Gets whether the "menu_for_children" field is set
Declaration
public bool HasMenuForChildren { get; }
Property Value
Type | Description |
---|---|
bool |
HasOutdoorSeating
Gets whether the "outdoor_seating" field is set
Declaration
public bool HasOutdoorSeating { get; }
Property Value
Type | Description |
---|---|
bool |
HasReservable
Gets whether the "reservable" field is set
Declaration
public bool HasReservable { get; }
Property Value
Type | Description |
---|---|
bool |
HasRestroom
Gets whether the "restroom" field is set
Declaration
public bool HasRestroom { get; }
Property Value
Type | Description |
---|---|
bool |
HasServesBeer
Gets whether the "serves_beer" field is set
Declaration
public bool HasServesBeer { get; }
Property Value
Type | Description |
---|---|
bool |
HasServesBreakfast
Gets whether the "serves_breakfast" field is set
Declaration
public bool HasServesBreakfast { get; }
Property Value
Type | Description |
---|---|
bool |
HasServesBrunch
Gets whether the "serves_brunch" field is set
Declaration
public bool HasServesBrunch { get; }
Property Value
Type | Description |
---|---|
bool |
HasServesCocktails
Gets whether the "serves_cocktails" field is set
Declaration
public bool HasServesCocktails { get; }
Property Value
Type | Description |
---|---|
bool |
HasServesCoffee
Gets whether the "serves_coffee" field is set
Declaration
public bool HasServesCoffee { get; }
Property Value
Type | Description |
---|---|
bool |
HasServesDessert
Gets whether the "serves_dessert" field is set
Declaration
public bool HasServesDessert { get; }
Property Value
Type | Description |
---|---|
bool |
HasServesDinner
Gets whether the "serves_dinner" field is set
Declaration
public bool HasServesDinner { get; }
Property Value
Type | Description |
---|---|
bool |
HasServesLunch
Gets whether the "serves_lunch" field is set
Declaration
public bool HasServesLunch { get; }
Property Value
Type | Description |
---|---|
bool |
HasServesVegetarianFood
Gets whether the "serves_vegetarian_food" field is set
Declaration
public bool HasServesVegetarianFood { get; }
Property Value
Type | Description |
---|---|
bool |
HasServesWine
Gets whether the "serves_wine" field is set
Declaration
public bool HasServesWine { get; }
Property Value
Type | Description |
---|---|
bool |
HasTakeout
Gets whether the "takeout" field is set
Declaration
public bool HasTakeout { get; }
Property Value
Type | Description |
---|---|
bool |
HasUserRatingCount
Gets whether the "user_rating_count" field is set
Declaration
public bool HasUserRatingCount { get; }
Property Value
Type | Description |
---|---|
bool |
HasUtcOffsetMinutes
Gets whether the "utc_offset_minutes" field is set
Declaration
public bool HasUtcOffsetMinutes { get; }
Property Value
Type | Description |
---|---|
bool |
IconBackgroundColor
Background color for icon_mask in hex format, e.g. #909CE1.
Declaration
public string IconBackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
string |
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").
Declaration
public string IconMaskBaseUri { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
The unique identifier of a place.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
InternationalPhoneNumber
A human-readable phone number for the place, in international format.
Declaration
public string InternationalPhoneNumber { get; set; }
Property Value
Type | Description |
---|---|
string |
LiveMusic
Place provides live music.
Declaration
public bool LiveMusic { get; set; }
Property Value
Type | Description |
---|---|
bool |
Location
The position of this place.
Declaration
public LatLng Location { get; set; }
Property Value
Type | Description |
---|---|
LatLng |
MenuForChildren
Place has a children's menu.
Declaration
public bool MenuForChildren { get; set; }
Property Value
Type | Description |
---|---|
bool |
Name
This Place's resource name, in places/{place_id}
format. Can be used to
look up the Place.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
NationalPhoneNumber
A human-readable phone number for the place, in national format.
Declaration
public string NationalPhoneNumber { get; set; }
Property Value
Type | Description |
---|---|
string |
OutdoorSeating
Place provides outdoor seating.
Declaration
public bool OutdoorSeating { get; set; }
Property Value
Type | Description |
---|---|
bool |
ParkingOptions
Options of parking provided by the place.
Declaration
public Place.Types.ParkingOptions ParkingOptions { get; set; }
Property Value
Type | Description |
---|---|
Place.Types.ParkingOptions |
PaymentOptions
Payment options the place accepts. If a payment option data is not available, the payment option field will be unset.
Declaration
public Place.Types.PaymentOptions PaymentOptions { get; set; }
Property Value
Type | Description |
---|---|
Place.Types.PaymentOptions |
Photos
Information (including references) about photos of this place. A maximum of 10 photos can be returned.
Declaration
public RepeatedField<Photo> Photos { get; }
Property Value
Type | Description |
---|---|
RepeatedField<Photo> |
PlaceName
Declaration
public PlaceName PlaceName { get; set; }
Property Value
Type | Description |
---|---|
PlaceName |
PlusCode
Plus code of the place location lat/long.
Declaration
public Place.Types.PlusCode PlusCode { get; set; }
Property Value
Type | Description |
---|---|
Place.Types.PlusCode |
PriceLevel
Price level of the place.
Declaration
public PriceLevel PriceLevel { get; set; }
Property Value
Type | Description |
---|---|
PriceLevel |
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
Declaration
public string PrimaryType { get; set; }
Property Value
Type | Description |
---|---|
string |
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
Declaration
public LocalizedText PrimaryTypeDisplayName { get; set; }
Property Value
Type | Description |
---|---|
LocalizedText |
Rating
A rating between 1.0 and 5.0, based on user reviews of this place.
Declaration
public double Rating { get; set; }
Property Value
Type | Description |
---|---|
double |
RegularOpeningHours
The regular hours of operation.
Declaration
public Place.Types.OpeningHours RegularOpeningHours { get; set; }
Property Value
Type | Description |
---|---|
Place.Types.OpeningHours |
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.
Declaration
public RepeatedField<Place.Types.OpeningHours> RegularSecondaryOpeningHours { get; }
Property Value
Type | Description |
---|---|
RepeatedField<Place.Types.OpeningHours> |
Reservable
Specifies if the place supports reservations.
Declaration
public bool Reservable { get; set; }
Property Value
Type | Description |
---|---|
bool |
Restroom
Place has restroom.
Declaration
public bool Restroom { get; set; }
Property Value
Type | Description |
---|---|
bool |
Reviews
List of reviews about this place, sorted by relevance. A maximum of 5 reviews can be returned.
Declaration
public RepeatedField<Review> Reviews { get; }
Property Value
Type | Description |
---|---|
RepeatedField<Review> |
ServesBeer
Specifies if the place serves beer.
Declaration
public bool ServesBeer { get; set; }
Property Value
Type | Description |
---|---|
bool |
ServesBreakfast
Specifies if the place serves breakfast.
Declaration
public bool ServesBreakfast { get; set; }
Property Value
Type | Description |
---|---|
bool |
ServesBrunch
Specifies if the place serves brunch.
Declaration
public bool ServesBrunch { get; set; }
Property Value
Type | Description |
---|---|
bool |
ServesCocktails
Place serves cocktails.
Declaration
public bool ServesCocktails { get; set; }
Property Value
Type | Description |
---|---|
bool |
ServesCoffee
Place serves coffee.
Declaration
public bool ServesCoffee { get; set; }
Property Value
Type | Description |
---|---|
bool |
ServesDessert
Place serves dessert.
Declaration
public bool ServesDessert { get; set; }
Property Value
Type | Description |
---|---|
bool |
ServesDinner
Specifies if the place serves dinner.
Declaration
public bool ServesDinner { get; set; }
Property Value
Type | Description |
---|---|
bool |
ServesLunch
Specifies if the place serves lunch.
Declaration
public bool ServesLunch { get; set; }
Property Value
Type | Description |
---|---|
bool |
ServesVegetarianFood
Specifies if the place serves vegetarian food.
Declaration
public bool ServesVegetarianFood { get; set; }
Property Value
Type | Description |
---|---|
bool |
ServesWine
Specifies if the place serves wine.
Declaration
public bool ServesWine { get; set; }
Property Value
Type | Description |
---|---|
bool |
ShortFormattedAddress
A short, human-readable address for this place.
Declaration
public string ShortFormattedAddress { get; set; }
Property Value
Type | Description |
---|---|
string |
SubDestinations
A list of sub destinations related to the place.
Declaration
public RepeatedField<Place.Types.SubDestination> SubDestinations { get; }
Property Value
Type | Description |
---|---|
RepeatedField<Place.Types.SubDestination> |
Takeout
Specifies if the business supports takeout.
Declaration
public bool Takeout { get; set; }
Property Value
Type | Description |
---|---|
bool |
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
Declaration
public RepeatedField<string> Types_ { get; }
Property Value
Type | Description |
---|---|
RepeatedField<string> |
UserRatingCount
The total number of reviews (with or without text) for this place.
Declaration
public int UserRatingCount { get; set; }
Property Value
Type | Description |
---|---|
int |
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.
Declaration
public int UtcOffsetMinutes { get; set; }
Property Value
Type | Description |
---|---|
int |
Viewport
A viewport suitable for displaying the place on an average-sized map.
Declaration
public Viewport Viewport { get; set; }
Property Value
Type | Description |
---|---|
Viewport |
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.
Declaration
public string WebsiteUri { get; set; }
Property Value
Type | Description |
---|---|
string |