aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gps103ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Gps103ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
index 4a576b646..cf3264ea8 100644
--- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
@@ -156,8 +156,8 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
// Latitude
String hemisphere = parser.group(index++);
- Double latitude = Double.valueOf(parser.group(index++));
- latitude += Double.valueOf(parser.group(index++)) / 60;
+ Double latitude = Double.parseDouble(parser.group(index++));
+ latitude += Double.parseDouble(parser.group(index++)) / 60;
if (parser.group(index) != null) {
hemisphere = parser.group(index);
}
@@ -169,8 +169,8 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
// Longitude
hemisphere = parser.group(index++);
- Double longitude = Double.valueOf(parser.group(index++));
- longitude += Double.valueOf(parser.group(index++)) / 60;
+ Double longitude = Double.parseDouble(parser.group(index++));
+ longitude += Double.parseDouble(parser.group(index++)) / 60;
if (parser.group(index) != null) {
hemisphere = parser.group(index);
}
@@ -183,19 +183,19 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
// Speed
String speed = parser.group(index++);
if (speed != null) {
- position.setSpeed(Double.valueOf(speed));
+ position.setSpeed(Double.parseDouble(speed));
}
// Course
String course = parser.group(index++);
if (course != null) {
- position.setCourse(Double.valueOf(course));
+ position.setCourse(Double.parseDouble(course));
}
// Altitude
String altitude = parser.group(index++);
if (altitude != null) {
- position.setAltitude(Double.valueOf(altitude));
+ position.setAltitude(Double.parseDouble(altitude));
}
// Additional data