aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-04-07 07:01:27 -0700
committerAnton Tananaev <anton@traccar.org>2023-04-07 07:01:27 -0700
commitddf44c40b95c4a4a013f244ddffa3b1fad39d416 (patch)
tree8bed1c2c9042a22ef69dc15ad25d929671e63e69 /src/main
parent5da3b8fcb480736161aa6a0896501f00f197bc13 (diff)
downloadtrackermap-server-ddf44c40b95c4a4a013f244ddffa3b1fad39d416.tar.gz
trackermap-server-ddf44c40b95c4a4a013f244ddffa3b1fad39d416.tar.bz2
trackermap-server-ddf44c40b95c4a4a013f244ddffa3b1fad39d416.zip
Set LTE radio type
Diffstat (limited to 'src/main')
-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));
}
}