CircularCoordinateRegion represents a circular bounding region on the Earth’s surface.
CircularCoordinateRegion is immutable and can’t be modified after construction.
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.
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.
[[["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-05-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eCircularCoordinateRegion\u003c/code\u003e defines a circular area on the Earth's surface using a center point and radius.\u003c/p\u003e\n"],["\u003cp\u003eIt is an immutable structure with properties for center coordinates and radius in meters.\u003c/p\u003e\n"],["\u003cp\u003eThis struct conforms to protocols for coordinate region, bias, restriction, equatable, and hashable functionalities.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for generating bias and restriction \u003ccode\u003eURLQueryItem\u003c/code\u003e instances.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a \u003ccode\u003eCircularCoordinateRegion\u003c/code\u003e using a center coordinate and radius.\u003c/p\u003e\n"]]],["`CircularCoordinateRegion` defines an immutable circular area on Earth. Key actions include: initializing with a center (`CLLocationCoordinate2D`) and radius, retrieving the center and radius, and determining equality between two instances. It conforms to `CoordinateRegion`, `CoordinateRegionBias`, `CoordinateRegionRestriction`, `Equatable`, and `Hashable`. It provides functions to return region bias and restriction as `URLQueryItem` and includes methods for hashing. It provides `hashValue`, which is deprecated, advising to use `hash(into:)` instead.\n"],null,["CircularCoordinateRegion \n\n struct CircularCoordinateRegion\n\n extension CircularCoordinateRegion : ../Protocols.html#/s:17GooglePlacesSwift16CoordinateRegionP, ../Protocols/CoordinateRegionBias.html, ../Protocols/CoordinateRegionRestriction.html, Copyable, Equatable, Escapable, Hashable, Sendable\n\nCircularCoordinateRegion represents a circular bounding region on the Earth's surface.\nCircularCoordinateRegion is immutable and can't be modified after construction.\n- `\n ``\n ``\n `\n\n [==(_:_:)](#/s:17GooglePlacesSwift24CircularCoordinateRegionV2eeoiySbAC_ACtFZ)`\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 Swift \n\n static func == (lhs: CircularCoordinateRegion, rhs: CircularCoordinateRegion) -\u003e Bool\n\n Parameters\n\n |-------------|---------------------------|\n | ` `*lhs*` ` | A value to compare. |\n | ` `*rhs*` ` | Another value to compare. |\n\n- `\n ``\n ``\n `\n\n [bias()](#/s:17GooglePlacesSwift24CircularCoordinateRegionV4bias10Foundation12URLQueryItemVyF)`\n ` \n Returns the region bias as `URLQueryItem`. \n\n Declaration \n Swift \n\n func bias() -\u003e URLQueryItem\n\n- `\n ``\n ``\n `\n\n [center](#/s:17GooglePlacesSwift24CircularCoordinateRegionV6centerSo22CLLocationCoordinate2DVvp)`\n ` \n Represents the center of the circle, specified by its latitude-longitude coordinates. \n\n Declaration \n Swift \n\n var center: CLLocationCoordinate2D { get }\n\n- `\n ``\n ``\n `\n\n [hash(into:)](#/s:17GooglePlacesSwift24CircularCoordinateRegionV4hash4intoys6HasherVz_tF)`\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 Swift \n\n func hash(into hasher: inout Hasher)\n\n- `\n ``\n ``\n `\n\n [hashValue](#/s:17GooglePlacesSwift24CircularCoordinateRegionV9hashValueSivp)`\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:)](../Structs/CircularCoordinateRegion.html#/s:17GooglePlacesSwift24CircularCoordinateRegionV4hash4intoys6HasherVz_tF) requirement instead. The compiler provides an implementation for `hashValue` for you. \n\n Declaration \n Swift \n\n var hashValue: Int { get }\n\n- `\n ``\n ``\n `\n\n [init(center:radius:)](#/s:17GooglePlacesSwift24CircularCoordinateRegionV6center6radiusACSo22CLLocationCoordinate2DV_Sdtcfc)`\n ` \n Inits the center coordinates and radius corresponding to the rectangular region defined by\n the two corners. \n\n Declaration \n Swift \n\n init(center: CLLocationCoordinate2D, radius: CLLocationDistance)\n\n Parameters\n\n |----------------|----------------------------|\n | ` `*center*` ` | The center of this region. |\n | ` `*radius*` ` | The radius of this region. |\n\n- `\n ``\n ``\n `\n\n [radius](#/s:17GooglePlacesSwift24CircularCoordinateRegionV6radiusSdvp)`\n ` \n Represents the sradius of the circle, measured in meters. \n\n Declaration \n Swift \n\n var radius: CLLocationDistance { get }\n\n- `\n ``\n ``\n `\n\n [restriction()](#/s:17GooglePlacesSwift24CircularCoordinateRegionV11restriction10Foundation12URLQueryItemVyF)`\n ` \n Returns the region restriction as `URLQueryItem`. \n\n Declaration \n Swift \n\n func restriction() -\u003e URLQueryItem"]]