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
timestamp
Epoch timestamp of the location
latitude
Latitude in degrees
longitude
Longitude in degrees
Return Value
LocationPoint object
-
Compares any object with LocationPoint.
Declaration
Swift
@objc public override func isEqual(_ object: Any?) -> Bool
Parameters
object
an object to be compared with this LocationPoint object.
Return Value
true
if the given object is equal to this LocationPoint object,false
otherwise. -
Returns a dictionary that represents the
LocationPoint
object.Declaration
Swift
@objc public func toDictionary() -> [AnyHashable : Any]!