aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorggps <ggps@gmail.com>2015-02-13 21:15:43 +0100
committerggps <ggps@gmail.com>2015-02-13 21:15:43 +0100
commit3fae39aba444e7d2e28a7b1a8e6d6d63d82b53f1 (patch)
tree96e1516f5675e5b589ac4b04a3348a5a47697b77 /src/org/traccar/protocol
parent84d88b46f9b768063410ca88ce0be78842f5f355 (diff)
downloadtraccar-server-3fae39aba444e7d2e28a7b1a8e6d6d63d82b53f1.tar.gz
traccar-server-3fae39aba444e7d2e28a7b1a8e6d6d63d82b53f1.tar.bz2
traccar-server-3fae39aba444e7d2e28a7b1a8e6d6d63d82b53f1.zip
Add new param to OsmAnd protocol
Added a new param for getting a text description. Holds additional information about the position, for saving manual POIs.
Diffstat (limited to 'src/org/traccar/protocol')
-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 d469e0b03..f773a4633 100644
--- a/src/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -117,6 +117,9 @@ public class OsmAndProtocolDecoder extends BaseProtocolDecoder {
if (params.containsKey("batt")) {
extendedInfo.set("battery", params.get("batt").get(0));
}
+ if (params.containsKey("desc")) {
+ extendedInfo.set("description", params.get("desc").get(0));
+ }
position.setExtendedInfo(extendedInfo.toString());