CLLocationCoordinate2D
internal extension CLLocationCoordinate2D
extension CLLocationCoordinate2D: Hashable
extension CLLocationCoordinate2D: Equatable
-
Declaration
Swift
var isValid: Bool { get }Return Value
True, if the location is valid. This allows some “slop” around the Prime Meridian/Equator point.
-
Compares two locations for “equality.”
Declaration
Swift
func isEqualTo(_ inComp: CLLocationCoordinate2D, precisionInMeters inPrecisionInMeters: CLLocationDistance = 0.0) -> BoolParameters
inCompA location (long and lat), to which we are comparing ourselves.
precisionInMetersThis is an optional precision (slop area), in meters. If left out, then the match must be exact.
Return Value
True, if the locations are equal, according to the given precision.
-
This hashes the two double values.
Declaration
Swift
public func hash(into inHasher: inout Hasher)Parameters
intoThe mutable property that receives the hash.
-
They need to both be equal.
Declaration
Swift
public static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> BoolParameters
lhsThe left-hand side of the comparison.
rhsThe right-hand side of the comparison.
Return Value
True, if they are equal.
View on GitHub
CLLocationCoordinate2D Extension Reference