aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorjon-stumpf <jon.stumpf@gmail.com>2017-02-25 21:49:06 -0500
committerjon-stumpf <jon.stumpf@gmail.com>2017-03-04 16:27:02 -0500
commitc952212547f3975fed5fef9b8ccc8bef9f6b3297 (patch)
tree916d25510d6e0df7f5f3cd33fc1db45019753985 /src/org
parent149317fd5d53566f0902ff627ca3810f2130bbca (diff)
downloadtrackermap-server-c952212547f3975fed5fef9b8ccc8bef9f6b3297.tar.gz
trackermap-server-c952212547f3975fed5fef9b8ccc8bef9f6b3297.tar.bz2
trackermap-server-c952212547f3975fed5fef9b8ccc8bef9f6b3297.zip
Replace Position.KEY_DISTANCE with Position.KEY_ODOMETER_TRIP as per Section 3.1.1 in the documentation, v1.5;
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/BoxProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/BoxProtocolDecoder.java b/src/org/traccar/protocol/BoxProtocolDecoder.java
index b1fe55e5e..e4dcd6ad7 100644
--- a/src/org/traccar/protocol/BoxProtocolDecoder.java
+++ b/src/org/traccar/protocol/BoxProtocolDecoder.java
@@ -92,7 +92,7 @@ public class BoxProtocolDecoder extends BaseProtocolDecoder {
position.setSpeed(UnitsConverter.knotsFromKph(parser.nextDouble()));
position.setCourse(parser.nextDouble());
- position.set(Position.KEY_DISTANCE, parser.nextDouble() * 1000);
+ position.set(Position.KEY_ODOMETER_TRIP, parser.nextDouble() * 1000);
position.set(Position.KEY_EVENT, parser.next());
int status = parser.nextInt();