MMKLocation

@interface MMKLocation : NSObject

The geographical position of the object.

Summary

Class methods

+ (nonnull MMKLocation *)locationWithPosition:(nonnull MMKPoint *)position
                                     accuracy:(nullable NSNumber *)accuracy
                                     altitude:(nullable NSNumber *)altitude
                             altitudeAccuracy:(nullable NSNumber *)altitudeAccuracy
                                      heading:(nullable NSNumber *)heading
                                        speed:(nullable NSNumber *)speed
                            absoluteTimestamp:(nonnull NSDate *)absoluteTimestamp
                            relativeTimestamp:(nonnull NSDate *)relativeTimestamp;

Properties

@property (nonatomic, readonly, nonnull) MMKPoint *position;
The geographical position

@property (nonatomic, readonly, nullable) NSNumber *accuracy;
Location accuracy in meters

@property (nonatomic, readonly, nullable) NSNumber *altitude;
The altitude of the location in meters

@property (nonatomic, readonly, nullable) NSNumber *altitudeAccuracy;
The accuracy of the altitude in meters

@property (nonatomic, readonly, nullable) NSNumber *heading;
The current heading in degrees relative to true north, clockwise

@property (nonatomic, readonly, nullable) NSNumber *speed;
The speed in meters per second

@property (nonatomic, readonly, nonnull) NSDate *absoluteTimestamp;
Absolute timestamp, in milliseconds since January 1, 1970

@property (nonatomic, readonly, nonnull) NSDate *relativeTimestamp;
Relative timestamp, number of milliseconds passed on steady clock

Class methods

locationWithPosition:accuracy:altitude:altitudeAccuracy:heading:speed:absoluteTimestamp:relativeTimestamp:

+ (nonnull MMKLocation *)locationWithPosition:(nonnull MMKPoint *)position
                                     accuracy:(nullable NSNumber *)accuracy
                                     altitude:(nullable NSNumber *)altitude
                             altitudeAccuracy:(nullable NSNumber *)altitudeAccuracy
                                      heading:(nullable NSNumber *)heading
                                        speed:(nullable NSNumber *)speed
                            absoluteTimestamp:(nonnull NSDate *)absoluteTimestamp
                            relativeTimestamp:(nonnull NSDate *)relativeTimestamp;


Properties

position

@property (nonatomic, readonly, nonnull) MMKPoint *position;

The geographical position.


accuracy

@property (nonatomic, readonly, nullable) NSNumber *accuracy;

Location accuracy in meters.

Optional field, can be nil.


altitude

@property (nonatomic, readonly, nullable) NSNumber *altitude;

The altitude of the location in meters.

Optional field, can be nil.


altitudeAccuracy

@property (nonatomic, readonly, nullable) NSNumber *altitudeAccuracy;

The accuracy of the altitude in meters.

Optional field, can be nil.


heading

@property (nonatomic, readonly, nullable) NSNumber *heading;

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

Optional field, can be nil.


speed

@property (nonatomic, readonly, nullable) NSNumber *speed;

The speed in meters per second.

Optional field, can be nil.


absoluteTimestamp

@property (nonatomic, readonly, nonnull) NSDate *absoluteTimestamp;

Absolute timestamp, in milliseconds since January 1, 1970.


relativeTimestamp

@property (nonatomic, readonly, nonnull) NSDate *relativeTimestamp;

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