@@ -54,7 +54,7 @@ public String getTime() {
54
54
}
55
55
56
56
/**
57
- * Get the frequency of this packet
57
+ * Get the frequency of this packet
58
58
*
59
59
* @return the frequency, in MHz
60
60
*/
@@ -100,6 +100,7 @@ public String getCodingRate() {
100
100
101
101
/**
102
102
* Get the list of gateways that received this packet
103
+ *
103
104
* @return a List of Gateway
104
105
*/
105
106
public List <Gateway > getGateways () {
@@ -109,31 +110,35 @@ public List<Gateway> getGateways() {
109
110
return Collections .unmodifiableList (gateways );
110
111
}
111
112
112
-
113
113
public static class Gateway {
114
114
115
- private String id ;
115
+ private String gtwId ;
116
116
private long timestamp ;
117
117
private String time ;
118
118
private int channel ;
119
119
private double rssi ;
120
120
private double snr ;
121
121
private int rfChain ;
122
+ private double latitude ;
123
+ private double longitude ;
124
+ private double altitude ;
122
125
123
126
private Gateway () {
124
127
125
128
}
126
129
127
130
/**
128
131
* Get the Gateway ID as registered in TheThingsNetwork
132
+ *
129
133
* @return the gateway id
130
134
*/
131
135
public String getId () {
132
- return id ;
136
+ return gtwId ;
133
137
}
134
138
135
139
/**
136
140
* Get the Gateway internal reception time
141
+ *
137
142
* @return the gateway internal reception time
138
143
*/
139
144
public long getTimestamp () {
@@ -142,6 +147,7 @@ public long getTimestamp() {
142
147
143
148
/**
144
149
* Get the Gateway absolute reception time
150
+ *
145
151
* @return the gateway absolute reception time
146
152
*/
147
153
public String getTime () {
@@ -150,6 +156,7 @@ public String getTime() {
150
156
151
157
/**
152
158
* Get the channel this packet was sent on
159
+ *
153
160
* @return the channel this packet was sent on
154
161
*/
155
162
public int getChannel () {
@@ -158,6 +165,7 @@ public int getChannel() {
158
165
159
166
/**
160
167
* Get the RX rssi of this packet
168
+ *
161
169
* @return the RX rssi of this packet
162
170
*/
163
171
public double getRssi () {
@@ -166,6 +174,7 @@ public double getRssi() {
166
174
167
175
/**
168
176
* Get the RX snr of this packet
177
+ *
169
178
* @return the RX snr of this packet
170
179
*/
171
180
public double getSnr () {
@@ -174,10 +183,38 @@ public double getSnr() {
174
183
175
184
/**
176
185
* Get the RF chain of this packet
186
+ *
177
187
* @return the RF chain of this packet
178
188
*/
179
189
public int getRfChain () {
180
190
return rfChain ;
181
191
}
192
+
193
+ /**
194
+ * Get the gateway latitude
195
+ *
196
+ * @return the gateway latitude
197
+ */
198
+ public double getLatitude () {
199
+ return latitude ;
200
+ }
201
+
202
+ /**
203
+ * Get the gateway longitude
204
+ *
205
+ * @return the gateway longitude
206
+ */
207
+ public double getLongitude () {
208
+ return longitude ;
209
+ }
210
+
211
+ /**
212
+ * Get the gateway altitude
213
+ *
214
+ * @return the gateway altitude
215
+ */
216
+ public double getAltitude () {
217
+ return altitude ;
218
+ }
182
219
}
183
220
}
0 commit comments