diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-19 11:03:34 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-19 11:03:34 +1300 |
commit | 69270993f48c3ecb5d7b00e386fd67722448e8b5 (patch) | |
tree | 323f95805830bf58b402b03ac2fb3f28e7eb12aa /src/org/traccar/BasePipelineFactory.java | |
parent | ff731f55ca109872dc7a73ff8cf87adef9787ea0 (diff) | |
download | trackermap-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.java | 7 |
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()); } |