GooglePlacesSwift Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
PlaceProperty
enum PlaceProperty
extension PlaceProperty : Copyable, Equatable, Escapable, Hashable
The properties represent individual information that can be requested for a Place
object.
If no request properties are set, the Place
object will be empty with no useful information.
Please refer to https://developers.google.com/places/ios-sdk/place-data-fields for more
details.
-
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values a
and b
,
a == b
implies that a != b
is false
.
Declaration
Swift
static func == (a: PlaceProperty, b: PlaceProperty) -> Bool
-
Declaration
Swift
case accessibilityOptions
-
Declaration
Swift
case addressComponents
-
-
Declaration
Swift
case businessStatus
-
-
Declaration
Swift
case currentOpeningHours
-
Declaration
Swift
case currentSecondaryOpeningHours
-
-
Declaration
Swift
case editorialSummary
-
Declaration
Swift
case formattedAddress
-
Hashes the essential components of this value by feeding them into the
given hasher.
Implement this method to conform to the Hashable
protocol. The
components used for hashing must be the same as the components compared
in your type’s ==
operator implementation. Call hasher.combine(_:)
with each of these components.
Important
In your implementation of hash(into:)
,
don’t call finalize()
on the hasher
instance provided,
or replace it with a different instance.
Doing so may become a compile-time error in the future.
Declaration
Swift
func hash(into hasher: inout Hasher)
-
The hash value.
Hash values are not guaranteed to be equal across different executions of
your program. Do not save hash values to use during a future execution.
Important
hashValue
is deprecated as a
Hashable
requirement. To
conform to
Hashable
, implement the
hash(into:)
requirement instead.
The compiler provides an implementation for
hashValue
for you.
Declaration
Swift
var hashValue: Int { get }
-
Declaration
Swift
case iconBackgroundColor
-
-
Declaration
Swift
case internationalPhoneNumber
-
-
Declaration
Swift
case numberOfUserRatings
-
-
-
-
-
Declaration
Swift
case pureServiceAreaBusiness
-
-
Declaration
Swift
case regularOpeningHours
-
-
-
Declaration
Swift
case servesBreakfast
-
-
-
-
Declaration
Swift
case servesVegetarianFood
-
-
Declaration
Swift
case supportsCurbsidePickup
-
Declaration
Swift
case supportsDelivery
-
Declaration
Swift
case supportsDineIn
-
Declaration
Swift
case supportsTakeout
-
-
-
-
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-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003ePlaceProperty\u003c/code\u003e is an enum representing individual pieces of data that can be requested for a \u003ccode\u003ePlace\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eIf no \u003ccode\u003ePlaceProperty\u003c/code\u003e values are specified during a place request, the resulting \u003ccode\u003ePlace\u003c/code\u003e object will be empty.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the official Google Places iOS SDK documentation for detailed information about each available place data field.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePlaceProperty\u003c/code\u003e enum conforms to \u003ccode\u003eEquatable\u003c/code\u003e and \u003ccode\u003eHashable\u003c/code\u003e protocols for comparison and usage in collections.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003ePlaceProperty\u003c/code\u003e values when fetching \u003ccode\u003ePlace\u003c/code\u003e data to specify the desired information, ensuring efficient and targeted data retrieval.\u003c/p\u003e\n"]]],["`PlaceProperty` is an enum representing requestable information for a `Place` object. Setting request properties enables retrieving data; otherwise, the `Place` object is empty. Key actions include defining individual properties like `addressComponents`, `businessStatus`, `photos`, and `reviews`. The enum conforms to `Equatable` and `Hashable` for equality checks and hashing. `hash(into:)` and the `==` operator are utilized for this, along with the declaration of all the different data points that can be requested. The `all` property allows you to select every data point at once.\n"],null,["# GooglePlacesSwift Framework Reference\n\nPlaceProperty\n=============\n\n enum PlaceProperty\n\n extension PlaceProperty : Copyable, Equatable, Escapable, Hashable\n\nThe properties represent individual information that can be requested for a [Place](../Structs/Place.html) object.\n\nIf no request properties are set, the [Place](../Structs/Place.html) object will be empty with no useful information.\n\nPlease refer to \u003chttps://developers.google.com/places/ios-sdk/place-data-fields\u003e for more\ndetails.\n- `\n ``\n ``\n `\n\n ### [==(_:_:)](#/s:17GooglePlacesSwift13PlacePropertyO2eeoiySbAC_ACtFZ)\n\n `\n ` \n Returns a Boolean value indicating whether two values are equal.\n\n Equality is the inverse of inequality. For any values `a` and `b`,\n `a == b` implies that `a != b` is `false`. \n\n #### Declaration\n\n Swift \n\n static func == (a: PlaceProperty, b: PlaceProperty) -\u003e Bool\n\n- `\n ``\n ``\n `\n\n ### [accessibilityOptions](#/s:17GooglePlacesSwift13PlacePropertyO20accessibilityOptionsyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case accessibilityOptions\n\n- `\n ``\n ``\n `\n\n ### [addressComponents](#/s:17GooglePlacesSwift13PlacePropertyO17addressComponentsyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case addressComponents\n\n- `\n ``\n ``\n `\n\n ### [all](#/s:17GooglePlacesSwift13PlacePropertyO3allyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case all\n\n- `\n ``\n ``\n `\n\n ### [businessStatus](#/s:17GooglePlacesSwift13PlacePropertyO14businessStatusyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case businessStatus\n\n- `\n ``\n ``\n `\n\n ### [coordinate](#/s:17GooglePlacesSwift13PlacePropertyO10coordinateyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case coordinate\n\n- `\n ``\n ``\n `\n\n ### [currentOpeningHours](#/s:17GooglePlacesSwift13PlacePropertyO19currentOpeningHoursyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case currentOpeningHours\n\n- `\n ``\n ``\n `\n\n ### [currentSecondaryOpeningHours](#/s:17GooglePlacesSwift13PlacePropertyO28currentSecondaryOpeningHoursyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case currentSecondaryOpeningHours\n\n- `\n ``\n ``\n `\n\n ### [displayName](#/s:17GooglePlacesSwift13PlacePropertyO11displayNameyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case displayName\n\n- `\n ``\n ``\n `\n\n ### [editorialSummary](#/s:17GooglePlacesSwift13PlacePropertyO16editorialSummaryyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case editorialSummary\n\n- `\n ``\n ``\n `\n\n ### [formattedAddress](#/s:17GooglePlacesSwift13PlacePropertyO16formattedAddressyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case formattedAddress\n\n- `\n ``\n ``\n `\n\n ### [hash(into:)](#/s:17GooglePlacesSwift13PlacePropertyO4hash4intoys6HasherVz_tF)\n\n `\n ` \n Hashes the essential components of this value by feeding them into the\n given hasher.\n\n Implement this method to conform to the `Hashable` protocol. The\n components used for hashing must be the same as the components compared\n in your type's `==` operator implementation. Call `hasher.combine(_:)`\n with each of these components. \n Important\n\n In your implementation of `hash(into:)`,\n don't call `finalize()` on the `hasher` instance provided,\n or replace it with a different instance.\n Doing so may become a compile-time error in the future. \n\n #### Declaration\n\n Swift \n\n func hash(into hasher: inout Hasher)\n\n- `\n ``\n ``\n `\n\n ### [hashValue](#/s:17GooglePlacesSwift13PlacePropertyO9hashValueSivp)\n\n `\n ` \n The hash value.\n\n Hash values are not guaranteed to be equal across different executions of\n your program. Do not save hash values to use during a future execution. \n Important\n `hashValue` is deprecated as a `Hashable` requirement. To conform to `Hashable`, implement the [hash(into:)](../Enums/PlaceProperty.html#/s:17GooglePlacesSwift13PlacePropertyO4hash4intoys6HasherVz_tF) requirement instead. The compiler provides an implementation for `hashValue` for you. \n\n #### Declaration\n\n Swift \n\n var hashValue: Int { get }\n\n- `\n ``\n ``\n `\n\n ### [iconBackgroundColor](#/s:17GooglePlacesSwift13PlacePropertyO19iconBackgroundColoryA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case iconBackgroundColor\n\n- `\n ``\n ``\n `\n\n ### [iconMaskURL](#/s:17GooglePlacesSwift13PlacePropertyO11iconMaskURLyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case iconMaskURL\n\n- `\n ``\n ``\n `\n\n ### [internationalPhoneNumber](#/s:17GooglePlacesSwift13PlacePropertyO24internationalPhoneNumberyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case internationalPhoneNumber\n\n- `\n ``\n ``\n `\n\n ### [isReservable](#/s:17GooglePlacesSwift13PlacePropertyO12isReservableyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case isReservable\n\n- `\n ``\n ``\n `\n\n ### [numberOfUserRatings](#/s:17GooglePlacesSwift13PlacePropertyO19numberOfUserRatingsyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case numberOfUserRatings\n\n- `\n ``\n ``\n `\n\n ### [photos](#/s:17GooglePlacesSwift13PlacePropertyO6photosyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case photos\n\n- `\n ``\n ``\n `\n\n ### [placeID](#/s:17GooglePlacesSwift13PlacePropertyO7placeIDyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case placeID\n\n- `\n ``\n ``\n `\n\n ### [plusCode](#/s:17GooglePlacesSwift13PlacePropertyO8plusCodeyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case plusCode\n\n- `\n ``\n ``\n `\n\n ### [priceLevel](#/s:17GooglePlacesSwift13PlacePropertyO10priceLevelyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case priceLevel\n\n- `\n ``\n ``\n `\n\n ### [pureServiceAreaBusiness](#/s:17GooglePlacesSwift13PlacePropertyO23pureServiceAreaBusinessyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case pureServiceAreaBusiness\n\n- `\n ``\n ``\n `\n\n ### [rating](#/s:17GooglePlacesSwift13PlacePropertyO6ratingyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case rating\n\n- `\n ``\n ``\n `\n\n ### [regularOpeningHours](#/s:17GooglePlacesSwift13PlacePropertyO19regularOpeningHoursyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case regularOpeningHours\n\n- `\n ``\n ``\n `\n\n ### [reviews](#/s:17GooglePlacesSwift13PlacePropertyO7reviewsyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case reviews\n\n- `\n ``\n ``\n `\n\n ### [servesBeer](#/s:17GooglePlacesSwift13PlacePropertyO10servesBeeryA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case servesBeer\n\n- `\n ``\n ``\n `\n\n ### [servesBreakfast](#/s:17GooglePlacesSwift13PlacePropertyO15servesBreakfastyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case servesBreakfast\n\n- `\n ``\n ``\n `\n\n ### [servesBrunch](#/s:17GooglePlacesSwift13PlacePropertyO12servesBrunchyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case servesBrunch\n\n- `\n ``\n ``\n `\n\n ### [servesDinner](#/s:17GooglePlacesSwift13PlacePropertyO12servesDinneryA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case servesDinner\n\n- `\n ``\n ``\n `\n\n ### [servesLunch](#/s:17GooglePlacesSwift13PlacePropertyO11servesLunchyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case servesLunch\n\n- `\n ``\n ``\n `\n\n ### [servesVegetarianFood](#/s:17GooglePlacesSwift13PlacePropertyO20servesVegetarianFoodyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case servesVegetarianFood\n\n- `\n ``\n ``\n `\n\n ### [servesWine](#/s:17GooglePlacesSwift13PlacePropertyO10servesWineyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case servesWine\n\n- `\n ``\n ``\n `\n\n ### [supportsCurbsidePickup](#/s:17GooglePlacesSwift13PlacePropertyO22supportsCurbsidePickupyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case supportsCurbsidePickup\n\n- `\n ``\n ``\n `\n\n ### [supportsDelivery](#/s:17GooglePlacesSwift13PlacePropertyO16supportsDeliveryyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case supportsDelivery\n\n- `\n ``\n ``\n `\n\n ### [supportsDineIn](#/s:17GooglePlacesSwift13PlacePropertyO14supportsDineInyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case supportsDineIn\n\n- `\n ``\n ``\n `\n\n ### [supportsTakeout](#/s:17GooglePlacesSwift13PlacePropertyO15supportsTakeoutyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case supportsTakeout\n\n- `\n ``\n ``\n `\n\n ### [timeZone](#/s:17GooglePlacesSwift13PlacePropertyO8timeZoneyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case timeZone\n\n- `\n ``\n ``\n `\n\n ### [types](#/s:17GooglePlacesSwift13PlacePropertyO5typesyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case types\n\n- `\n ``\n ``\n `\n\n ### [viewportInfo](#/s:17GooglePlacesSwift13PlacePropertyO12viewportInfoyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case viewportInfo\n\n- `\n ``\n ``\n `\n\n ### [websiteURL](#/s:17GooglePlacesSwift13PlacePropertyO10websiteURLyA2CmF)\n\n `\n ` \n\n #### Declaration\n\n Swift \n\n case websiteURL"]]