aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/OsmAndProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-13 03:51:37 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-13 02:51:37 +1300
commit96f2ddba048b064381cf9375514f7b9d84186218 (patch)
treea5a0b9022c905b8086bf162b7f9022b15722da3b /src/org/traccar/protocol/OsmAndProtocolDecoder.java
parent7844532ac883784c50ef7979a57d87ce35045006 (diff)
downloadtrackermap-server-96f2ddba048b064381cf9375514f7b9d84186218.tar.gz
trackermap-server-96f2ddba048b064381cf9375514f7b9d84186218.tar.bz2
trackermap-server-96f2ddba048b064381cf9375514f7b9d84186218.zip
Add accuracy to OsmAnd protocol
Diffstat (limited to 'src/org/traccar/protocol/OsmAndProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/OsmAndProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
index 5508cad92..382865e8f 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -119,6 +119,9 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
case "altitude":
position.setAltitude(Double.parseDouble(value));
break;
+ case "accuracy":
+ position.setAccuracy(Double.parseDouble(value));
+ break;
case "hdop":
position.set(Position.KEY_HDOP, Double.parseDouble(value));
break;