aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 4968ed05e..969b24297 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -371,18 +371,19 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
Long cid4g = (Long) position.getAttributes().remove("cid4g");
Integer lac = (Integer) position.getAttributes().remove("lac");
if (lac != null && (cid2g != null || cid4g != null)) {
+ Network network = new Network();
CellTower cellTower;
if (cid2g != null) {
cellTower = CellTower.fromLacCid(getConfig(), lac, cid2g);
- cellTower.setRadioType("gsm");
} else {
cellTower = CellTower.fromLacCid(getConfig(), lac, cid4g);
- cellTower.setRadioType("lte");
+ network.setRadioType("lte");
}
long operator = position.getInteger(Position.KEY_OPERATOR);
if (operator >= 1000) {
cellTower.setOperator(operator);
}
+ network.addCellTower(cellTower);
position.setNetwork(new Network(cellTower));
}
}