MMKLocation
@interface MMKLocation : NSObject |
The geographical position of the object.
Summary
Class methods
+ (nonnull MMKLocation *)locationWithPosition:(nonnull MMKPoint *)position |
Properties
@property (nonatomic, readonly, nonnull) MMKPoint *position; |
@property (nonatomic, readonly, nullable) NSNumber *accuracy; |
@property (nonatomic, readonly, nullable) NSNumber *altitude; |
@property (nonatomic, readonly, nullable) NSNumber *altitudeAccuracy; |
@property (nonatomic, readonly, nullable) NSNumber *heading; |
@property (nonatomic, readonly, nullable) NSNumber *speed; |
@property (nonatomic, readonly, nonnull) NSDate *absoluteTimestamp; |
@property (nonatomic, readonly, nonnull) NSDate *relativeTimestamp; |
Class methods
locationWithPosition:accuracy:altitude:altitudeAccuracy:heading:speed:absoluteTimestamp:relativeTimestamp:
+ (nonnull MMKLocation *)locationWithPosition:(nonnull MMKPoint *)position |
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.