From 3fae39aba444e7d2e28a7b1a8e6d6d63d82b53f1 Mon Sep 17 00:00:00 2001 From: ggps Date: Fri, 13 Feb 2015 21:15:43 +0100 Subject: 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. --- src/org/traccar/protocol/OsmAndProtocolDecoder.java | 3 +++ 1 file changed, 3 insertions(+) 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()); -- cgit v1.2.3