Skip to content

Commit

Permalink
Add new param to OsmAnd protocol
Browse files Browse the repository at this point in the history
Added a new param for getting a text description. Holds additional information about the position, for saving manual POIs.
  • Loading branch information
ggps committed Feb 13, 2015
1 parent 84d88b4 commit 3fae39a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/org/traccar/protocol/OsmAndProtocolDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ protected Object decode(
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());

Expand Down

0 comments on commit 3fae39a

Please sign in to comment.