diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-26 11:57:08 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-26 11:57:08 +0500 |
commit | 152dde860450adb9ae8409d69f429f35ad1b3b13 (patch) | |
tree | 6ec95c3b0c6decfa9b27dd147779229f742c23b0 /src/org/traccar/model/CellTower.java | |
parent | b5fc7e0899475547da99c06319ede5cc68f647e4 (diff) | |
download | trackermap-server-152dde860450adb9ae8409d69f429f35ad1b3b13.tar.gz trackermap-server-152dde860450adb9ae8409d69f429f35ad1b3b13.tar.bz2 trackermap-server-152dde860450adb9ae8409d69f429f35ad1b3b13.zip |
Improve Teltonika IO decoding
Diffstat (limited to 'src/org/traccar/model/CellTower.java')
-rw-r--r-- | src/org/traccar/model/CellTower.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/traccar/model/CellTower.java b/src/org/traccar/model/CellTower.java index 2eb56dd33..6d1dfbd7f 100644 --- a/src/org/traccar/model/CellTower.java +++ b/src/org/traccar/model/CellTower.java @@ -106,4 +106,10 @@ public class CellTower { this.signalStrength = signalStrength; } + public void setOperator(long operator) { + String operatorString = String.valueOf(operator); + mobileCountryCode = Integer.parseInt(operatorString.substring(0, 3)); + mobileNetworkCode = Integer.parseInt(operatorString.substring(3)); + } + } |