public class GGASentence extends NMEASentence
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEADER |
LATITUDE, LONGITUDE
Constructor and Description |
---|
GGASentence() |
Modifier and Type | Method and Description |
---|---|
protected double |
degreesMinToDegreesDbl(java.lang.String DD_MM,
int CoordinateType)
Any GPS Receiver gives Lat/Lon data in the following way:
http://www.gpsinformation.org/dale/nmea.htm
http://www.teletype.com/pages/support/Documentation/RMC_log_info.htm
4807.038,N Latitude 48 deg 07.038' N
01131.000,E Longitude 11 deg 31.000' E
This data is necessary to convert to Decimal Degrees.
|
float |
getAltitude()
Get Altitude
|
int |
getFixQuality()
Get GPS Quality Data
|
float |
getHDOP()
Get Horizontal Dilution of Precision (HDOP)
|
java.lang.String |
getHeader()
Returns the NMEA header for this sentence.
|
double |
getLatitude()
Get Latitude
|
char |
getLatitudeDirection()
Get Latitude Direction
|
double |
getLongitude()
Get Longitude
|
char |
getLongitudeDirection()
Get Longitude Direction
|
int |
getSatellitesTracked()
Returns the number of satellites being tracked to
determine the coordinates.
|
int |
getTime()
Returns the last time stamp retrieved from a satellite
|
void |
parse(java.lang.String sentence)
Method used to parse a GGA Sentence
|
degreesMinToDegrees, isNumeric
public static final java.lang.String HEADER
protected double degreesMinToDegreesDbl(java.lang.String DD_MM, int CoordinateType)
DD_MM
- CoordinateType
- public java.lang.String getHeader()
getHeader
in class NMEASentence
public double getLatitude()
public char getLatitudeDirection()
public double getLongitude()
public char getLongitudeDirection()
public float getAltitude()
public int getTime()
public int getSatellitesTracked()
public int getFixQuality()
public float getHDOP()
public void parse(java.lang.String sentence)
parse
in class NMEASentence