aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-19 11:03:34 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-19 11:03:34 +1300
commit69270993f48c3ecb5d7b00e386fd67722448e8b5 (patch)
tree323f95805830bf58b402b03ac2fb3f28e7eb12aa /src/org/traccar/BasePipelineFactory.java
parentff731f55ca109872dc7a73ff8cf87adef9787ea0 (diff)
downloadtrackermap-server-69270993f48c3ecb5d7b00e386fd67722448e8b5.tar.gz
trackermap-server-69270993f48c3ecb5d7b00e386fd67722448e8b5.tar.bz2
trackermap-server-69270993f48c3ecb5d7b00e386fd67722448e8b5.zip
Add approximate location filtering
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index b02bd0e53..c011fb015 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -128,9 +128,6 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
addSpecificHandlers(pipeline);
- if (filterHandler != null) {
- pipeline.addLast("filter", filterHandler);
- }
if (distanceHandler != null) {
pipeline.addLast("distance", distanceHandler);
}
@@ -144,6 +141,10 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
addDynamicHandlers(pipeline);
+ if (filterHandler != null) {
+ pipeline.addLast("filter", filterHandler);
+ }
+
if (Context.getDataManager() != null) {
pipeline.addLast("dataHandler", new DefaultDataHandler());
}