LocationPoint
@objc(ZDLocationPoint)
public class LocationPoint : NSObject
Represents a geographical coordinate.
-
Epoch timestamp of the location point.
Declaration
Swift
@objc public var timestamp: Int64 { get } -
Latitude in degrees
Declaration
Swift
@objc public var latitude: Double { get } -
Longitude in degrees
Declaration
Swift
@objc public var longitude: Double { get } -
Initializer for LocationPoint
Declaration
Swift
@objc public init(timestamp: Int64, latitude: Double, longitude: Double)Parameters
timestampEpoch timestamp of the location
latitudeLatitude in degrees
longitudeLongitude in degrees
Return Value
LocationPoint object
-
Compares any object with LocationPoint.
Declaration
Swift
@objc public override func isEqual(_ object: Any?) -> BoolParameters
objectan object to be compared with this LocationPoint object.
Return Value
trueif the given object is equal to this LocationPoint object,falseotherwise. -
Returns a dictionary that represents the
LocationPointobject.Declaration
Swift
@objc public func toDictionary() -> [AnyHashable : Any]!
LocationPoint Class Reference