SITLocation Class Reference
Inherits from | NSObject |
---|---|
Declared in | SITLocation.h |
Overview
Describes a geographical position of the user, either indoor or outdoor. A valid indoor location has floorIdentifier and cartesianCoordinate in its position property.
timestamp
The time at which this location was determined.
@property (nonatomic) NSTimeInterval timestamp
Declared In
SITLocation.h
position
Geographical coordinate information.
@property (nonatomic, strong) SITPoint *position
Declared In
SITLocation.h
bearing
The direction in which the device is traveling in geographical coordinate system (can be directly applied to a map provider)
@property (nonatomic, strong) SITAngle *bearing
Declared In
SITLocation.h
cartesianBearing
The direction in which the device is traveling in cartesian coordinate system.
@property (nonatomic, strong) SITAngle *cartesianBearing
Declared In
SITLocation.h
bearingQuality
Indication of the quality of the bearing value @Discussion kSITHigh means the system is very confident on the bearing values. kSITLow means the system is still trying to determine the correct bearing; this situation happens when initializing the system.
@property (nonatomic) kSITQualityValues bearingQuality
Declared In
SITLocation.h
quality
Return an indicative of quality calculated with accuracy and building size.
@property (nonatomic) kSITQualityValues quality
Discussion
Only used in indoor.
Declared In
SITLocation.h
accuracy
Return the accuracy radius (in meters).
@property (nonatomic) float accuracy
Declared In
SITLocation.h
provider
Multiple providers can create locations. This property determines which one has determined the location.
@property (nonatomic, strong) NSString *provider
Declared In
SITLocation.h
deviceId
Identifier of the device that has generated the location
@property (nonatomic, strong) NSString *deviceId
Declared In
SITLocation.h
– initWithTimestamp:position:bearing:cartesianBearing:quality:accuracy:provider:
Private method. Contructor.
- (instancetype)initWithTimestamp:(NSTimeInterval)timestamp position:(SITPoint *)position bearing:(float)bearing cartesianBearing:(float)cartesianBearing quality:(kSITQualityValues)quality accuracy:(float)accuracy provider:(NSString *)provider
Parameters
timestamp |
when the location was determined. |
---|---|
position |
geographical coordinate information. |
bearing |
the direction in which the device is traveling in geographical coordinate system (degrees) |
cartesianBearing |
The direction in which the device is traveling in cartesian coordinate system (radians) |
quality |
indicative of quality calculated with accuracy and building size. |
accuracy |
ccuracy radius (in meters). |
provider |
multiple providers can create locations. Determines which one has determined the location. |
Return Value
initialized location
Discussion
You should not use this method. Instead you should work with locations provided by SITLocationManager.
Declared In
SITLocation.h
– initWithTimestamp:position:bearing:cartesianBearing:quality:bearingQuality:accuracy:provider:
Private method. Contructor.
- (instancetype)initWithTimestamp:(NSTimeInterval)timestamp position:(SITPoint *)position bearing:(float)bearing cartesianBearing:(float)cartesianBearing quality:(kSITQualityValues)quality bearingQuality:(kSITQualityValues)bearingQuality accuracy:(float)accuracy provider:(NSString *)provider
Parameters
timestamp |
when the location was determined. |
---|---|
position |
geographical coordinate information. |
bearing |
the direction in which the device is traveling in geographical coordinate system (degrees) |
cartesianBearing |
The direction in which the device is traveling in cartesian coordinate system (radians) |
quality |
indicative of quality calculated with accuracy and building size. |
bearingQuality |
|
accuracy |
ccuracy radius (in meters). |
provider |
multiple providers can create locations. Determines which one has determined the location. |
Return Value
initialized location
Discussion
You should not use this method. Instead you should work with locations provided by SITLocationManager.
Declared In
SITLocation.h