diff options
author | ggps <ggps@gmail.com> | 2015-02-13 21:15:43 +0100 |
---|---|---|
committer | ggps <ggps@gmail.com> | 2015-02-13 21:15:43 +0100 |
commit | 3fae39aba444e7d2e28a7b1a8e6d6d63d82b53f1 (patch) | |
tree | 96e1516f5675e5b589ac4b04a3348a5a47697b77 /src | |
parent | 84d88b46f9b768063410ca88ce0be78842f5f355 (diff) | |
download | trackermap-server-3fae39aba444e7d2e28a7b1a8e6d6d63d82b53f1.tar.gz trackermap-server-3fae39aba444e7d2e28a7b1a8e6d6d63d82b53f1.tar.bz2 trackermap-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')
-rw-r--r-- | src/org/traccar/protocol/OsmAndProtocolDecoder.java | 3 |
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()); |