diff options
Diffstat (limited to 'src/org/traccar/protocol/MeitrackProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/MeitrackProtocolDecoder.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/org/traccar/protocol/MeitrackProtocolDecoder.java index fc8d67885..6b43d1169 100644 --- a/src/org/traccar/protocol/MeitrackProtocolDecoder.java +++ b/src/org/traccar/protocol/MeitrackProtocolDecoder.java @@ -99,8 +99,8 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { position.set(Event.KEY_EVENT, event); // Coordinates - position.setLatitude(Double.valueOf(parser.group(index++))); - position.setLongitude(Double.valueOf(parser.group(index++))); + position.setLatitude(Double.parseDouble(parser.group(index++))); + position.setLongitude(Double.parseDouble(parser.group(index++))); // Time Calendar time = Calendar.getInstance(TimeZone.getTimeZone("UTC")); @@ -123,16 +123,16 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder { position.set(Event.KEY_GSM, parser.group(index++)); // Speed - position.setSpeed(UnitsConverter.knotsFromKph(Double.valueOf(parser.group(index++)))); + position.setSpeed(UnitsConverter.knotsFromKph(Double.parseDouble(parser.group(index++)))); // Course - position.setCourse(Double.valueOf(parser.group(index++))); + position.setCourse(Double.parseDouble(parser.group(index++))); // HDOP position.set(Event.KEY_HDOP, parser.group(index++)); // Altitude - position.setAltitude(Double.valueOf(parser.group(index++))); + position.setAltitude(Double.parseDouble(parser.group(index++))); // Other position.set(Event.KEY_ODOMETER, parser.group(index++)); |