aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-08 11:20:28 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-08 11:20:28 +1300
commit75225f028ce835346013f835ab66c439ad80f499 (patch)
tree6d2883ccc0ed8db11608cff2a52961a958b5b752
parent6c073306ae80bede62c6e53d6aa5bfcb929875d2 (diff)
downloadtrackermap-server-75225f028ce835346013f835ab66c439ad80f499.tar.gz
trackermap-server-75225f028ce835346013f835ab66c439ad80f499.tar.bz2
trackermap-server-75225f028ce835346013f835ab66c439ad80f499.zip
Rename geolocation config parameters
-rw-r--r--src/org/traccar/BasePipelineFactory.java2
-rw-r--r--src/org/traccar/model/CellTower.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index a0b42feeb..74b59a486 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -134,7 +134,7 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
if (Context.getGeolocationProvider() != null) {
geolocationHandler = new GeolocationHandler(
Context.getGeolocationProvider(),
- Context.getConfig().getBoolean("location.processInvalidPositions"));
+ Context.getConfig().getBoolean("geolocation.processInvalidPositions"));
}
distanceHandler = new DistanceHandler();
diff --git a/src/org/traccar/model/CellTower.java b/src/org/traccar/model/CellTower.java
index 74ed8a4ea..53866b59a 100644
--- a/src/org/traccar/model/CellTower.java
+++ b/src/org/traccar/model/CellTower.java
@@ -38,8 +38,8 @@ public class CellTower {
public static CellTower fromLacCid(int lac, long cid) {
return from(
- Context.getConfig().getInteger("location.mcc"),
- Context.getConfig().getInteger("location.mnc"), lac, cid);
+ Context.getConfig().getInteger("geolocation.mcc"),
+ Context.getConfig().getInteger("geolocation.mnc"), lac, cid);
}
public static CellTower fromCidLac(long cid, int lac) {