aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
authorValerii Vyshniak <valeravi@vi-soft.com.ua>2017-01-28 22:38:37 +0100
committerValerii Vyshniak <valeravi@vi-soft.com.ua>2017-01-28 22:38:37 +0100
commit1b7009e850fa0c8f755ba141ca185ea894ee2e6f (patch)
treed8753cefe7b849fdebf34a86480d228e64f26eb2 /src/org/traccar/model
parent26175114ee573caa1774a04157253789d4a93998 (diff)
downloadtrackermap-server-1b7009e850fa0c8f755ba141ca185ea894ee2e6f.tar.gz
trackermap-server-1b7009e850fa0c8f755ba141ca185ea894ee2e6f.tar.bz2
trackermap-server-1b7009e850fa0c8f755ba141ca185ea894ee2e6f.zip
Added channel to WifiAccessPoint geolocation class
Some geolocation providers also accept wifi channel number to perfom the geolocation more precisely. So protocols can supply this additional information now.
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r--src/org/traccar/model/WifiAccessPoint.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/org/traccar/model/WifiAccessPoint.java b/src/org/traccar/model/WifiAccessPoint.java
index ddb995412..b18705420 100644
--- a/src/org/traccar/model/WifiAccessPoint.java
+++ b/src/org/traccar/model/WifiAccessPoint.java
@@ -27,6 +27,12 @@ public class WifiAccessPoint {
return wifiAccessPoint;
}
+ public static WifiAccessPoint from(String macAddress, int signalStrength, int channel) {
+ WifiAccessPoint wifiAccessPoint = from(macAddress, signalStrength);
+ wifiAccessPoint.setChannel(channel);
+ return wifiAccessPoint;
+ }
+
private String macAddress;
public String getMacAddress() {
@@ -47,4 +53,14 @@ public class WifiAccessPoint {
this.signalStrength = signalStrength;
}
+ private Integer channel;
+
+ public Integer getChannel() {
+ return channel;
+ }
+
+ public void setChannel(Integer channel) {
+ this.channel = channel;
+ }
+
}