diff options
author | jon-stumpf <jon.stumpf@gmail.com> | 2017-02-25 21:49:06 -0500 |
---|---|---|
committer | jon-stumpf <jon.stumpf@gmail.com> | 2017-03-04 16:27:02 -0500 |
commit | c952212547f3975fed5fef9b8ccc8bef9f6b3297 (patch) | |
tree | 916d25510d6e0df7f5f3cd33fc1db45019753985 /src/org | |
parent | 149317fd5d53566f0902ff627ca3810f2130bbca (diff) | |
download | trackermap-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.java | 2 |
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(); |