aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/OsmAndProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-08-30 00:08:52 +1200
committerGitHub <noreply@github.com>2017-08-30 00:08:52 +1200
commite3dfcf55262b60142a10458641f720aff3a0f6ad (patch)
tree22550a31fad86f044633af278c731173d63398eb /src/org/traccar/protocol/OsmAndProtocolDecoder.java
parent561915e44fdf630ac10fdc8e4a207e384ea59d9a (diff)
parent72d35d6c63ff80353eae1559d5c5d71c94d137bb (diff)
downloadtrackermap-server-e3dfcf55262b60142a10458641f720aff3a0f6ad.tar.gz
trackermap-server-e3dfcf55262b60142a10458641f720aff3a0f6ad.tar.bz2
trackermap-server-e3dfcf55262b60142a10458641f720aff3a0f6ad.zip
Merge pull request #3491 from Abyss777/osmand_speedunits
Make OsmAnd speed units configurable
Diffstat (limited to 'src/org/traccar/protocol/OsmAndProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/OsmAndProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
index 6f8513c41..c06582a15 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 - 2016 Anton Tananaev (anton@traccar.org)
+ * Copyright 2013 - 2017 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -110,7 +110,7 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
position.setLongitude(Double.parseDouble(location[1]));
break;
case "speed":
- position.setSpeed(Double.parseDouble(value));
+ position.setSpeed(convertSpeed(Double.parseDouble(value), "kn"));
break;
case "bearing":
case "heading":