aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-04 21:07:33 +1200
committerGitHub <noreply@github.com>2016-09-04 21:07:33 +1200
commit6aca189651d8587b9178a38c1830a8cbd8ae0d46 (patch)
treee9a94c5886b66310ea5cbab5ca8ee35d70d7543e /src/org/traccar
parentc5e5757e5911c08c12f35f0fe2791c710aa0a2a1 (diff)
parentd8166cc1b1db9fca92b801804831dc8c20ab7415 (diff)
downloadtraccar-server-6aca189651d8587b9178a38c1830a8cbd8ae0d46.tar.gz
traccar-server-6aca189651d8587b9178a38c1830a8cbd8ae0d46.tar.bz2
traccar-server-6aca189651d8587b9178a38c1830a8cbd8ae0d46.zip
Merge pull request #2283 from dough29/master
Adding location parameter to OsmAnd protocol
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/OsmAndProtocolDecoder.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
index c5884a4d0..eddfb592c 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -104,6 +104,11 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
case "lon":
position.setLongitude(Double.parseDouble(value));
break;
+ case "location":
+ String[] location = value.split(",");
+ position.setLatitude(Double.parseDouble(location[0]));
+ position.setLongitude(Double.parseDouble(location[1]));
+ break;
case "speed":
position.setSpeed(Double.parseDouble(value));
break;