aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-12 10:52:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-03-12 10:52:14 +1300
commit633bed5cd14c16d53c7b84ed2c6586915467e1a8 (patch)
tree5a6864ded6ea566984dd6001ee17f8ddd767c074 /src/org
parent9c6706bc8ae37776689c61e237978b364fb392e8 (diff)
downloadtraccar-server-633bed5cd14c16d53c7b84ed2c6586915467e1a8.tar.gz
traccar-server-633bed5cd14c16d53c7b84ed2c6586915467e1a8.tar.bz2
traccar-server-633bed5cd14c16d53c7b84ed2c6586915467e1a8.zip
Minor decoding and pipeline fixes
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/BasePipelineFactory.java6
-rw-r--r--src/org/traccar/BaseProtocolDecoder.java1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index 74b59a486..775d609a7 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -188,15 +188,15 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
addSpecificHandlers(pipeline);
+ if (geolocationHandler != null) {
+ pipeline.addLast("location", geolocationHandler);
+ }
if (hemisphereHandler != null) {
pipeline.addLast("hemisphere", hemisphereHandler);
}
if (geocoderHandler != null) {
pipeline.addLast("geocoder", geocoderHandler);
}
- if (geolocationHandler != null) {
- pipeline.addLast("location", geolocationHandler);
- }
pipeline.addLast("remoteAddress", new RemoteAddressHandler());
addDynamicHandlers(pipeline);
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java
index e5fa76a47..54d2bf28f 100644
--- a/src/org/traccar/BaseProtocolDecoder.java
+++ b/src/org/traccar/BaseProtocolDecoder.java
@@ -162,6 +162,7 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
position.setAltitude(last.getAltitude());
position.setSpeed(last.getSpeed());
position.setCourse(last.getCourse());
+ position.setAccuracy(last.getAccuracy());
} else {
position.setFixTime(new Date(0));
}