diff options
Diffstat (limited to 'src/org/traccar/protocol/TaipProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/TaipProtocolDecoder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/TaipProtocolDecoder.java b/src/org/traccar/protocol/TaipProtocolDecoder.java index 0953b739a..7545df13e 100644 --- a/src/org/traccar/protocol/TaipProtocolDecoder.java +++ b/src/org/traccar/protocol/TaipProtocolDecoder.java @@ -161,16 +161,16 @@ public class TaipProtocolDecoder extends BaseProtocolDecoder { // Latitude String latitude = parser.group(index) + '.' + parser.group(index + 1); index += 2; - position.setLatitude(Double.valueOf(latitude)); + position.setLatitude(Double.parseDouble(latitude)); // Latitude String longitude = parser.group(index) + '.' + parser.group(index + 1); index += 2; - position.setLongitude(Double.valueOf(longitude)); + position.setLongitude(Double.parseDouble(longitude)); // Speed and Course - position.setSpeed(UnitsConverter.knotsFromMph(Double.valueOf(parser.group(index++)))); - position.setCourse(Double.valueOf(parser.group(index++))); + position.setSpeed(UnitsConverter.knotsFromMph(Double.parseDouble(parser.group(index++)))); + position.setCourse(Double.parseDouble(parser.group(index++))); // Validity position.setValid(Integer.parseInt(parser.group(index++)) != 0); |