aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/OsmAndProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-18 12:36:57 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-18 12:36:57 +1300
commitae06bf5aee294905b52404220f4706534f93fc53 (patch)
treedf921378427891e9320438c0d86aebec64fd3306 /src/org/traccar/protocol/OsmAndProtocolDecoder.java
parent14a1d5989a66d824d4ff23f02c6b95c0db9e8541 (diff)
downloadtrackermap-server-ae06bf5aee294905b52404220f4706534f93fc53.tar.gz
trackermap-server-ae06bf5aee294905b52404220f4706534f93fc53.tar.bz2
trackermap-server-ae06bf5aee294905b52404220f4706534f93fc53.zip
Support valid parameter for OsmAnd
Diffstat (limited to 'src/org/traccar/protocol/OsmAndProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/OsmAndProtocolDecoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
index 56a7bc5b5..775d1ed3d 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -33,6 +33,7 @@ import org.jboss.netty.handler.codec.http.QueryStringDecoder;
import org.traccar.BaseProtocolDecoder;
import org.traccar.model.Event;
import org.traccar.model.Position;
+import sun.net.www.content.audio.basic;
public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
@@ -67,6 +68,9 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
}
position.setDeviceId(getDeviceId());
break;
+ case "valid":
+ position.setValid(Boolean.parseBoolean(value));
+ break;
case "timestamp":
try {
long timestamp = Long.parseLong(value);