diff options
author | Ivan Martinez <ivanfmartinez@users.noreply.github.com> | 2018-04-06 19:02:40 -0300 |
---|---|---|
committer | Ivan Martinez <ivanfmartinez@users.noreply.github.com> | 2018-04-06 19:02:40 -0300 |
commit | 4d80cb140474f5d47d1dca67580bb2db0f829a9f (patch) | |
tree | 13c7c2e3cb73ce8c16ff6486bb280df1ae2d1405 /src | |
parent | 4938acc7d9d901eed6b33f047a312b9a89bdd957 (diff) | |
download | traccar-server-4d80cb140474f5d47d1dca67580bb2db0f829a9f.tar.gz traccar-server-4d80cb140474f5d47d1dca67580bb2db0f829a9f.tar.bz2 traccar-server-4d80cb140474f5d47d1dca67580bb2db0f829a9f.zip |
add position accuracy to log
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/MainEventHandler.java | 3 |
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); |