uk.co.silentsoftware.utils
Class GPSDataUtils
java.lang.Object
uk.co.silentsoftware.utils.GPSDataUtils
public class GPSDataUtils
- extends java.lang.Object
Helper class specific to FollowMe data structures
to process and format GPS data into other types
|
Method Summary |
static double |
convertToDegreeMinute(java.lang.String position,
java.lang.String direction)
Utility method to convert the NMEA formatted coords
into pure degree coords (no minutes/seconds)
The format is suitable for mapping websites such
as streetmap.co.uk |
static javax.microedition.location.Coordinates |
parseCoords(java.lang.String coordsString)
Parse a string of the format "lat lon"
where lat lon are coordinates and return
a new Coordinates object |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GPSDataUtils
public GPSDataUtils()
parseCoords
public static javax.microedition.location.Coordinates parseCoords(java.lang.String coordsString)
- Parse a string of the format "lat lon"
where lat lon are coordinates and return
a new Coordinates object
- Parameters:
coordsString -
- Returns:
convertToDegreeMinute
public static double convertToDegreeMinute(java.lang.String position,
java.lang.String direction)
throws java.lang.IllegalArgumentException
- Utility method to convert the NMEA formatted coords
into pure degree coords (no minutes/seconds)
The format is suitable for mapping websites such
as streetmap.co.uk
- Parameters:
position - direction -
- Returns:
-
- Throws:
java.lang.IllegalArgumentException