diff options
author | Valerii Vyshniak <valeravi@vi-soft.com.ua> | 2017-01-28 22:38:37 +0100 |
---|---|---|
committer | Valerii Vyshniak <valeravi@vi-soft.com.ua> | 2017-01-28 22:38:37 +0100 |
commit | 1b7009e850fa0c8f755ba141ca185ea894ee2e6f (patch) | |
tree | d8753cefe7b849fdebf34a86480d228e64f26eb2 /src | |
parent | 26175114ee573caa1774a04157253789d4a93998 (diff) | |
download | traccar-server-1b7009e850fa0c8f755ba141ca185ea894ee2e6f.tar.gz traccar-server-1b7009e850fa0c8f755ba141ca185ea894ee2e6f.tar.bz2 traccar-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')
-rw-r--r-- | src/org/traccar/model/WifiAccessPoint.java | 16 |
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; + } + } |