aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/GoSafeProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/GoSafeProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/GoSafeProtocolDecoder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/org/traccar/protocol/GoSafeProtocolDecoder.java
index ddb4af6b7..90b2e5bea 100644
--- a/src/org/traccar/protocol/GoSafeProtocolDecoder.java
+++ b/src/org/traccar/protocol/GoSafeProtocolDecoder.java
@@ -92,20 +92,20 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder {
// Latitude
String hemisphere = parser.group(index++);
- Double latitude = Double.valueOf(parser.group(index++));
+ Double latitude = Double.parseDouble(parser.group(index++));
if (hemisphere.compareTo("S") == 0) latitude = -latitude;
position.setLatitude(latitude);
// Longitude
hemisphere = parser.group(index++);
- Double longitude = Double.valueOf(parser.group(index++));
+ Double longitude = Double.parseDouble(parser.group(index++));
if (hemisphere.compareTo("W") == 0) longitude = -longitude;
position.setLongitude(longitude);
// Other
- position.setSpeed(Double.valueOf(parser.group(index++)));
- position.setCourse(Double.valueOf(parser.group(index++)));
- position.setAltitude(Double.valueOf(parser.group(index++)));
+ position.setSpeed(Double.parseDouble(parser.group(index++)));
+ position.setCourse(Double.parseDouble(parser.group(index++)));
+ position.setAltitude(Double.parseDouble(parser.group(index++)));
position.set(Event.KEY_HDOP, parser.group(index++));
return position;