aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/MainEventHandler.java
diff options
context:
space:
mode:
authorIvan Martinez <ivanfmartinez@users.noreply.github.com>2018-04-06 19:02:40 -0300
committerIvan Martinez <ivanfmartinez@users.noreply.github.com>2018-04-06 19:02:40 -0300
commit4d80cb140474f5d47d1dca67580bb2db0f829a9f (patch)
tree13c7c2e3cb73ce8c16ff6486bb280df1ae2d1405 /src/org/traccar/MainEventHandler.java
parent4938acc7d9d901eed6b33f047a312b9a89bdd957 (diff)
downloadtrackermap-server-4d80cb140474f5d47d1dca67580bb2db0f829a9f.tar.gz
trackermap-server-4d80cb140474f5d47d1dca67580bb2db0f829a9f.tar.bz2
trackermap-server-4d80cb140474f5d47d1dca67580bb2db0f829a9f.zip
add position accuracy to log
Diffstat (limited to 'src/org/traccar/MainEventHandler.java')
-rw-r--r--src/org/traccar/MainEventHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/MainEventHandler.java b/src/org/traccar/MainEventHandler.java
index 8e88e15b9..3c8876846 100644
--- a/src/org/traccar/MainEventHandler.java
+++ b/src/org/traccar/MainEventHandler.java
@@ -66,7 +66,8 @@ public class MainEventHandler extends IdleStateAwareChannelHandler {
s.append("lat: ").append(String.format("%.5f", position.getLatitude())).append(", ");
s.append("lon: ").append(String.format("%.5f", position.getLongitude())).append(", ");
s.append("speed: ").append(String.format("%.1f", position.getSpeed())).append(", ");
- s.append("course: ").append(String.format("%.1f", position.getCourse()));
+ s.append("course: ").append(String.format("%.1f", position.getCourse())).append(", ");
+ s.append("accuracy: ").append(String.format("%.1f", position.getAccuracy()));
Object cmdResult = position.getAttributes().get(Position.KEY_RESULT);
if (cmdResult != null) {
s.append(", result: ").append(cmdResult);