aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-12 15:16:10 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-12 15:16:10 +0500
commit1fd120a7fb74134a8ed7e12e685137f77a872567 (patch)
tree9a405e494c478d13073145f7d44eeecc96f5c7fb /src/org/traccar/BasePipelineFactory.java
parent5d3b7cbe5924d4a4552035626a83e26b1e756255 (diff)
downloadtrackermap-server-1fd120a7fb74134a8ed7e12e685137f77a872567.tar.gz
trackermap-server-1fd120a7fb74134a8ed7e12e685137f77a872567.tar.bz2
trackermap-server-1fd120a7fb74134a8ed7e12e685137f77a872567.zip
Always calculate distance
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index ed7aa0a69..e2b991afa 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -132,9 +132,7 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
Context.getLocationProvider(), Context.getConfig().getBoolean("location.processInvalidPositions"));
}
- if (Context.getConfig().getBoolean("distance.enable")) {
- distanceHandler = new DistanceHandler();
- }
+ distanceHandler = new DistanceHandler();
if (Context.getConfig().hasKey("location.latitudeHemisphere")
|| Context.getConfig().hasKey("location.longitudeHemisphere")) {