summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLGPSData.h
blob: f0bead9f7f3b36e7262f95d240e698974685e458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
//  SDLGPSData.h
//

#import "SDLRPCMessage.h"

#import "SDLCompassDirection.h"
#import "SDLDimension.h"


/**
 * Describes the GPS data. Not all data will be available on all carlines.
 * 
 * @since SDL 2.0
 */

NS_ASSUME_NONNULL_BEGIN

@interface SDLGPSData : SDLRPCStruct

/**
 * longitude degrees
 *
 * Required, Float, -180 - 180
 */
@property (strong, nonatomic) NSNumber<SDLFloat> *longitudeDegrees;

/**
 * latitude degrees
 *
 * Required, Float, -90 - 90
 */
@property (strong, nonatomic) NSNumber<SDLFloat> *latitudeDegrees;

/**
 * utc year
 *
 * Optional, Integer, 2010 - 2100
 */
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *utcYear;

/**
 * utc month
 *
 * Optional, Integer, 1 - 12
 */
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *utcMonth;

/**
 * utc day
 *
 * Optional, Integer, 1 - 31
 */
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *utcDay;

/**
 * utc hours
 *
 * Optional, Integer, 0 - 23
 */
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *utcHours;

/**
 * utc minutes
 *
 * Optional, Integer, 0 - 59
 */
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *utcMinutes;

/**
 * utc seconds
 *
 * Optional, Integer, 0 - 59
 */
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *utcSeconds;

/**
 * Optional, Potential Compass Directions
 */
@property (nullable, strong, nonatomic) SDLCompassDirection compassDirection;

/**
 * The 3D positional dilution of precision.
 *
 * @discussion If undefined or unavailable, then value shall be set to 0
 *
 * Required, Float, 0.0 - 1000.0
 */
@property (nullable, strong, nonatomic) NSNumber<SDLFloat> *pdop;

/**
 * The horizontal dilution of precision
 *
 * @discussion If undefined or unavailable, then value shall be set to 0
 *
 * Required, Float, 0.0 - 1000.0
 */
@property (nullable, strong, nonatomic) NSNumber<SDLFloat> *hdop;

/**
 * the vertical dilution of precision
 *
 * @discussion If undefined or unavailable, then value shall be set to 0
 *
 * Required, Float, 0.0 - 1000.0
 */
@property (nullable, strong, nonatomic) NSNumber<SDLFloat> *vdop;

/**
 * What the coordinates are based on
 *
 * @discussion YES, if coordinates are based on satellites. NO, if based on dead reckoning.
 *
 * Optional, Boolean
 */
@property (nullable, strong, nonatomic) NSNumber<SDLBool> *actual;

/**
 * The number of satellites in view
 *
 * Optional, Integer, 0 - 31
 */
@property (nullable, strong, nonatomic) NSNumber<SDLInt> *satellites;

/**
 * The supported dimensions of the GPS
 *
 * Optional
 */
@property (nullable, strong, nonatomic) SDLDimension dimension;

/**
 * Altitude in meters
 *
 * Optional, Float, -10000.0 - 10000.0
 */
@property (nullable, strong, nonatomic) NSNumber<SDLFloat> *altitude;

/**
 * Heading based on the GPS data.
 * 
 * @discussion North is 0, East is 90, etc. Resolution is 0.01
 *
 * Optional, Float, 0.0 - 359.99
 */
@property (nullable, strong, nonatomic) NSNumber<SDLFloat> *heading;

/**
 * Speed in KPH
 *
 * Optional, Float, 0.0 - 500.0
 */
@property (nullable, strong, nonatomic) NSNumber<SDLFloat> *speed;

@end

NS_ASSUME_NONNULL_END