MMKLocation

class MMKLocation : NSObject

The geographical position of the object.

Summary

Class methods

 init(position: MMKPoint,
      accuracy: NSNumber?,
      altitude: NSNumber?,
 altitudeAccuracy: NSNumber?,
       heading: NSNumber?,
         speed: NSNumber?,
 absoluteTimestamp: Date,
 relativeTimestamp: Date)

Properties

var positionMMKPoint { get }
The geographical position

var accuracy: NSNumber? { get }
Location accuracy in meters

var altitude: NSNumber? { get }
The altitude of the location in meters

var altitudeAccuracy: NSNumber? { get }
The accuracy of the altitude in meters

var heading: NSNumber? { get }
The current heading in degrees relative to true north, clockwise

var speed: NSNumber? { get }
The speed in meters per second

var absoluteTimestamp: Date { get }
Absolute timestamp, in milliseconds since January 1, 1970

var relativeTimestamp: Date { get }
Relative timestamp, number of milliseconds passed on steady clock

Class methods

init(position:accuracy:altitude:altitudeAccuracy:heading:speed:absoluteTimestamp:relativeTimestamp:)

 init(position: MMKPoint,
      accuracy: NSNumber?,
      altitude: NSNumber?,
 altitudeAccuracy: NSNumber?,
       heading: NSNumber?,
         speed: NSNumber?,
 absoluteTimestamp: Date,
 relativeTimestamp: Date)


Properties

position

var position: MMKPoint { get }

The geographical position.


accuracy

var accuracy: NSNumber? { get }

Location accuracy in meters.

Optional field, can be nil.


altitude

var altitude: NSNumber? { get }

The altitude of the location in meters.

Optional field, can be nil.


altitudeAccuracy

var altitudeAccuracy: NSNumber? { get }

The accuracy of the altitude in meters.

Optional field, can be nil.


heading

var heading: NSNumber? { get }

The current heading in degrees relative to true north, clockwise.

Optional field, can be nil.


speed

var speed: NSNumber? { get }

The speed in meters per second.

Optional field, can be nil.


absoluteTimestamp

var absoluteTimestamp: Date { get }

Absolute timestamp, in milliseconds since January 1, 1970.


relativeTimestamp

var relativeTimestamp: Date { get }

Relative timestamp, number of milliseconds passed on steady clock. Use for interval calculation.