GooglePlacesSwift Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
BusinessStatus
enum BusinessStatus
extension BusinessStatus : CaseIterable, Equatable, Hashable, Identifiable
Describes the business status of a place.
-
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: BusinessStatus, b: BusinessStatus) -> Bool
-
A type that can represent a collection of all values of this type.
Declaration
Swift
typealias AllCases = [BusinessStatus]
-
A type representing the stable identity of the entity associated with
an instance.
Declaration
Swift
@available(watchOS, introduced: 6.0)
@available(macOS, introduced: 10.15)
@available(iOS, introduced: 13.0)
@available(tvOS, introduced: 13.0)
typealias ID = BusinessStatus
-
A collection of all values of this type.
Declaration
Swift
nonisolated static var allCases: [BusinessStatus] { get }
-
The business is closed permanently.
Declaration
Swift
case closedPermanently
-
The business is closed temporarily.
Declaration
Swift
case closedTemporarily
-
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 }
-
The stable identity of the entity associated with this instance.
Declaration
Swift
var id: BusinessStatus { get }
-
The business is operational.
-
The business status is not known.
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\u003eBusinessStatus\u003c/code\u003e is an enum in GooglePlacesSwift that describes the operational status of a place.\u003c/p\u003e\n"],["\u003cp\u003eIt includes cases for \u003ccode\u003eoperational\u003c/code\u003e, \u003ccode\u003eclosedPermanently\u003c/code\u003e, \u003ccode\u003eclosedTemporarily\u003c/code\u003e, and \u003ccode\u003eunknown\u003c/code\u003e statuses.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBusinessStatus\u003c/code\u003e conforms to \u003ccode\u003eCaseIterable\u003c/code\u003e, \u003ccode\u003eEquatable\u003c/code\u003e, \u003ccode\u003eHashable\u003c/code\u003e, and \u003ccode\u003eIdentifiable\u003c/code\u003e protocols.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this enum to determine if a place is currently open, closed temporarily, or permanently closed.\u003c/p\u003e\n"]]],["The `BusinessStatus` enum describes a place's operational status, providing cases for `operational`, `closedPermanently`, `closedTemporarily`, and `unknown`. It conforms to `CaseIterable`, `Equatable`, `Hashable`, and `Identifiable`, enabling comparison, iteration, hashing, and unique identification. Key actions include determining equality with the `==` operator, generating a hash value, providing all possible cases with `allCases`, and retrieving an id, in the same format as the business status.\n"],null,["# GooglePlacesSwift Framework Reference\n\nBusinessStatus\n==============\n\n enum BusinessStatus\n\n extension BusinessStatus : CaseIterable, Equatable, Hashable, Identifiable\n\nDescribes the business status of a place.\n- `\n ``\n ``\n `\n\n ### [==(_:_:)](#/s:17GooglePlacesSwift14BusinessStatusO2eeoiySbAC_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: BusinessStatus, b: BusinessStatus) -\u003e Bool\n\n- `\n ``\n ``\n `\n\n ### [AllCases](#/s:17GooglePlacesSwift14BusinessStatusO8AllCasesa)\n\n `\n ` \n A type that can represent a collection of all values of this type. \n\n #### Declaration\n\n Swift \n\n typealias AllCases = [BusinessStatus]\n\n- `\n ``\n ``\n `\n\n ### [ID](#/s:17GooglePlacesSwift14BusinessStatusO2IDa)\n\n `\n ` \n A type representing the stable identity of the entity associated with\n an instance. \n\n #### Declaration\n\n Swift \n\n @available(watchOS, introduced: 6.0)\n @available(macOS, introduced: 10.15)\n @available(iOS, introduced: 13.0)\n @available(tvOS, introduced: 13.0)\n typealias ID = BusinessStatus\n\n- `\n ``\n ``\n `\n\n ### [allCases](#/s:17GooglePlacesSwift14BusinessStatusO8allCasesSayACGvpZ)\n\n `\n ` \n A collection of all values of this type. \n\n #### Declaration\n\n Swift \n\n nonisolated static var allCases: [BusinessStatus] { get }\n\n- `\n ``\n ``\n `\n\n ### [closedPermanently](#/s:17GooglePlacesSwift14BusinessStatusO17closedPermanentlyyA2CmF)\n\n `\n ` \n The business is closed permanently. \n\n #### Declaration\n\n Swift \n\n case closedPermanently\n\n- `\n ``\n ``\n `\n\n ### [closedTemporarily](#/s:17GooglePlacesSwift14BusinessStatusO17closedTemporarilyyA2CmF)\n\n `\n ` \n The business is closed temporarily. \n\n #### Declaration\n\n Swift \n\n case closedTemporarily\n\n- `\n ``\n ``\n `\n\n ### [hash(into:)](#/s:17GooglePlacesSwift14BusinessStatusO4hash4intoys6HasherVz_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:17GooglePlacesSwift14BusinessStatusO9hashValueSivp)\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/BusinessStatus.html#/s:17GooglePlacesSwift14BusinessStatusO4hash4intoys6HasherVz_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 ### [id](#/s:17GooglePlacesSwift14BusinessStatusO2idACvp)\n\n `\n ` \n The stable identity of the entity associated with this instance. \n\n #### Declaration\n\n Swift \n\n var id: BusinessStatus { get }\n\n- `\n ``\n ``\n `\n\n ### [operational](#/s:17GooglePlacesSwift14BusinessStatusO11operationalyA2CmF)\n\n `\n ` \n The business is operational. \n\n #### Declaration\n\n Swift \n\n case operational\n\n- `\n ``\n ``\n `\n\n ### [unknown](#/s:17GooglePlacesSwift14BusinessStatusO7unknownyA2CmF)\n\n `\n ` \n The business status is not known. \n\n #### Declaration\n\n Swift \n\n case unknown"]]