aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/OsmAndProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-12 17:38:18 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-12 17:38:18 -0700
commit7237e4b515884721058993f2ccb8f06f8333b867 (patch)
tree8d056327b11c5c10c01bd016075e47e8fdb5ad9e /src/main/java/org/traccar/protocol/OsmAndProtocolDecoder.java
parent8a7275a8680ca0db4def3b4c52ad1ddcf4525949 (diff)
downloadtrackermap-server-7237e4b515884721058993f2ccb8f06f8333b867.tar.gz
trackermap-server-7237e4b515884721058993f2ccb8f06f8333b867.tar.bz2
trackermap-server-7237e4b515884721058993f2ccb8f06f8333b867.zip
Support OsmAnd charging info
Diffstat (limited to 'src/main/java/org/traccar/protocol/OsmAndProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/OsmAndProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/OsmAndProtocolDecoder.java b/src/main/java/org/traccar/protocol/OsmAndProtocolDecoder.java
index 5f8e7424b..c8968023a 100644
--- a/src/main/java/org/traccar/protocol/OsmAndProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/OsmAndProtocolDecoder.java
@@ -143,6 +143,9 @@ public class OsmAndProtocolDecoder extends BaseHttpProtocolDecoder {
case "driverUniqueId":
position.set(Position.KEY_DRIVER_UNIQUE_ID, value);
break;
+ case "charge":
+ position.set(Position.KEY_CHARGE, Boolean.parseBoolean(value));
+ break;
default:
try {
position.set(entry.getKey(), Double.parseDouble(value));