AI-generated Key Takeaways
- 
          CircularCoordinateRegiondefines a circular area on the Earth's surface using a center point and radius.
- 
          It is an immutable structure with properties for center coordinates and radius in meters. 
- 
          This struct conforms to protocols for coordinate region, bias, restriction, equatable, and hashable functionalities. 
- 
          It provides methods for generating bias and restriction URLQueryIteminstances.
- 
          You can create a CircularCoordinateRegionusing a center coordinate and radius.
CircularCoordinateRegion
struct CircularCoordinateRegionextension CircularCoordinateRegion : CoordinateRegion, CoordinateRegionBias, CoordinateRegionRestriction, Copyable, Equatable, Escapable, Hashable, SendableCircularCoordinateRegion represents a circular bounding region on the Earth’s surface. CircularCoordinateRegion is immutable and can’t be modified after construction.
- 
                  
                  Returns a Boolean value indicating whether two values are equal. Equality is the inverse of inequality. For any values aandb,a == bimplies thata != bisfalse.DeclarationSwift static func == (lhs: CircularCoordinateRegion, rhs: CircularCoordinateRegion) -> BoolParameterslhsA value to compare. rhsAnother value to compare. 
- 
                  
                  Returns the region bias as URLQueryItem.DeclarationSwift func bias() -> URLQueryItem
- 
                  
                  Represents the center of the circle, specified by its latitude-longitude coordinates. DeclarationSwift var center: CLLocationCoordinate2D { get }
- 
                  
                  Hashes the essential components of this value by feeding them into the given hasher. Implement this method to conform to the Hashableprotocol. The components used for hashing must be the same as the components compared in your type’s==operator implementation. Callhasher.combine(_:)with each of these components.Important In your implementation of hash(into:), don’t callfinalize()on thehasherinstance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.DeclarationSwift 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 hashValueis deprecated as aHashablerequirement. To conform toHashable, implement thehash(into:)requirement instead. The compiler provides an implementation forhashValuefor you.DeclarationSwift var hashValue: Int { get }
- 
                  
                  Inits the center coordinates and radius corresponding to the rectangular region defined by the two corners. DeclarationSwift init(center: CLLocationCoordinate2D, radius: CLLocationDistance)ParameterscenterThe center of this region. radiusThe radius of this region. 
- 
                  
                  Represents the sradius of the circle, measured in meters. DeclarationSwift var radius: CLLocationDistance { get }
- 
                  
                  Returns the region restriction as URLQueryItem.DeclarationSwift func restriction() -> URLQueryItem