@@ -54,7 +54,7 @@ public String getTime() {
5454 }
5555
5656 /**
57- * Get the frequency of this packet
57+ * Get the frequency of this packet
5858 *
5959 * @return the frequency, in MHz
6060 */
@@ -100,6 +100,7 @@ public String getCodingRate() {
100100
101101 /**
102102 * Get the list of gateways that received this packet
103+ *
103104 * @return a List of Gateway
104105 */
105106 public List <Gateway > getGateways () {
@@ -109,31 +110,35 @@ public List<Gateway> getGateways() {
109110 return Collections .unmodifiableList (gateways );
110111 }
111112
112-
113113 public static class Gateway {
114114
115- private String id ;
115+ private String gtwId ;
116116 private long timestamp ;
117117 private String time ;
118118 private int channel ;
119119 private double rssi ;
120120 private double snr ;
121121 private int rfChain ;
122+ private double latitude ;
123+ private double longitude ;
124+ private double altitude ;
122125
123126 private Gateway () {
124127
125128 }
126129
127130 /**
128131 * Get the Gateway ID as registered in TheThingsNetwork
132+ *
129133 * @return the gateway id
130134 */
131135 public String getId () {
132- return id ;
136+ return gtwId ;
133137 }
134138
135139 /**
136140 * Get the Gateway internal reception time
141+ *
137142 * @return the gateway internal reception time
138143 */
139144 public long getTimestamp () {
@@ -142,6 +147,7 @@ public long getTimestamp() {
142147
143148 /**
144149 * Get the Gateway absolute reception time
150+ *
145151 * @return the gateway absolute reception time
146152 */
147153 public String getTime () {
@@ -150,6 +156,7 @@ public String getTime() {
150156
151157 /**
152158 * Get the channel this packet was sent on
159+ *
153160 * @return the channel this packet was sent on
154161 */
155162 public int getChannel () {
@@ -158,6 +165,7 @@ public int getChannel() {
158165
159166 /**
160167 * Get the RX rssi of this packet
168+ *
161169 * @return the RX rssi of this packet
162170 */
163171 public double getRssi () {
@@ -166,6 +174,7 @@ public double getRssi() {
166174
167175 /**
168176 * Get the RX snr of this packet
177+ *
169178 * @return the RX snr of this packet
170179 */
171180 public double getSnr () {
@@ -174,10 +183,38 @@ public double getSnr() {
174183
175184 /**
176185 * Get the RF chain of this packet
186+ *
177187 * @return the RF chain of this packet
178188 */
179189 public int getRfChain () {
180190 return rfChain ;
181191 }
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+ }
182219 }
183220}
0 commit comments