aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-01-13 15:58:37 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-01-13 15:58:37 +1300
commit6b11a6e00f67664ef622e458832e820bc6f0aed5 (patch)
tree6e3ec04083711fd33bc81f6a7e25a4c37f5042ce /src/org
parent29c8ab33a712e3fee23f21c5e58b2d1ab64010c8 (diff)
downloadtrackermap-server-6b11a6e00f67664ef622e458832e820bc6f0aed5.tar.gz
trackermap-server-6b11a6e00f67664ef622e458832e820bc6f0aed5.tar.bz2
trackermap-server-6b11a6e00f67664ef622e458832e820bc6f0aed5.zip
Decode SPOT message type
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/SpotProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/SpotProtocolDecoder.java b/src/org/traccar/protocol/SpotProtocolDecoder.java
index ed6a03c5f..dc4e272ca 100644
--- a/src/org/traccar/protocol/SpotProtocolDecoder.java
+++ b/src/org/traccar/protocol/SpotProtocolDecoder.java
@@ -81,6 +81,8 @@ public class SpotProtocolDecoder extends BaseHttpProtocolDecoder {
position.setLatitude(Double.parseDouble(xPath.evaluate("latitude", node)));
position.setLongitude(Double.parseDouble(xPath.evaluate("longitude", node)));
+ position.set(Position.KEY_EVENT, xPath.evaluate("messageType", node));
+
positions.add(position);
}