Package org.hortonmachine.gears.io.nmea
Class NmeaGpsPoint
- java.lang.Object
-
- org.hortonmachine.gears.io.nmea.NmeaGpsPoint
-
public class NmeaGpsPoint extends Object
Representation of a complete gps point info.RMC - NMEA has its own version of essential gps pvt (position, velocity, time) data. It is called RMC, The Recommended Minimum, which will look similar to: $GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A Where: RMC Recommended Minimum sentence C 123519 Fix taken at 12:35:19 UTC A Status A=active or V=Void. 4807.038,N Latitude 48 deg 07.038' N 01131.000,E Longitude 11 deg 31.000' E 022.4 Speed over the ground in knots 084.4 Track angle in degrees True 230394 Date - 23rd of March 1994 003.1,W Magnetic Variation *6A The checksum data, always begins with * GGA - essential fix data which provide 3D location and accuracy data. $GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47 Where: GGA Global Positioning System Fix Data 123519 Fix taken at 12:35:19 UTC 4807.038,N Latitude 48 deg 07.038' N 01131.000,E Longitude 11 deg 31.000' E 1 Fix quality: 0 = invalid 1 = GPS fix (SPS) 2 = DGPS fix 3 = PPS fix 4 = Real Time Kinematic 5 = Float RTK 6 = estimated (dead reckoning) (2.3 feature) 7 = Manual input mode 8 = Simulation mode 08 Number of satellites being tracked 0.9 Horizontal dilution of position 545.4,M Altitude, Meters, above mean sea level 46.9,M Height of geoid (mean sea level) above WGS84 ellipsoid (empty field) time in seconds since last DGPS update (empty field) DGPS station ID number *47 the checksum data, always begins with *- Author:
- Andrea Antonello (www.hydrologis.com)
-
-
Field Summary
Fields Modifier and Type Field Description doublealtitudeStringaltitudeUnitdoubleangledoubleellipsoidVsMslStringellipsoidVsMslUnitstatic StringGPGGAstatic StringGPRMCdoublehdopbooleanisValiddoublelatitudedoublelongitudedoublemag_vardoublequalitydoublesatdoublespeedstatic StringstrAltitudestatic StringstrAnglestatic StringstrHdopstatic StringstrLatstatic StringstrLatitudestatic StringstrLonstatic StringstrLongitudestatic StringstrMag_varstatic StringstrMslstatic StringstrQualitystatic StringstrSatstatic StringstrSpeedstatic StringstrUtctimestatic StringstrValidity1static StringstrValidity2org.joda.time.DateTimeutcDateTime
-
Constructor Summary
Constructors Constructor Description NmeaGpsPoint()NmeaGpsPoint(String currentGPGGAsentence, String currentGPRMCsentence)Creates aNmeaGpsPointfrom the data strings.NmeaGpsPoint(NmeaGpsPoint gpsPoint)
-
-
-
Field Detail
-
GPGGA
public static final String GPGGA
- See Also:
- Constant Field Values
-
GPRMC
public static final String GPRMC
- See Also:
- Constant Field Values
-
strLatitude
public static final String strLatitude
- See Also:
- Constant Field Values
-
strLongitude
public static final String strLongitude
- See Also:
- Constant Field Values
-
strLat
public static final String strLat
- See Also:
- Constant Field Values
-
strLon
public static final String strLon
- See Also:
- Constant Field Values
-
strSpeed
public static final String strSpeed
- See Also:
- Constant Field Values
-
strAltitude
public static final String strAltitude
- See Also:
- Constant Field Values
-
strQuality
public static final String strQuality
- See Also:
- Constant Field Values
-
strSat
public static final String strSat
- See Also:
- Constant Field Values
-
strHdop
public static final String strHdop
- See Also:
- Constant Field Values
-
strMsl
public static final String strMsl
- See Also:
- Constant Field Values
-
strUtctime
public static final String strUtctime
- See Also:
- Constant Field Values
-
strMag_var
public static final String strMag_var
- See Also:
- Constant Field Values
-
strAngle
public static final String strAngle
- See Also:
- Constant Field Values
-
strValidity1
public static final String strValidity1
- See Also:
- Constant Field Values
-
strValidity2
public static final String strValidity2
- See Also:
- Constant Field Values
-
latitude
public double latitude
-
longitude
public double longitude
-
speed
public double speed
-
altitude
public double altitude
-
quality
public double quality
-
sat
public double sat
-
hdop
public double hdop
-
ellipsoidVsMsl
public double ellipsoidVsMsl
-
utcDateTime
public org.joda.time.DateTime utcDateTime
-
mag_var
public double mag_var
-
angle
public double angle
-
altitudeUnit
public String altitudeUnit
-
ellipsoidVsMslUnit
public String ellipsoidVsMslUnit
-
isValid
public boolean isValid
-
-
Constructor Detail
-
NmeaGpsPoint
public NmeaGpsPoint()
-
NmeaGpsPoint
public NmeaGpsPoint(NmeaGpsPoint gpsPoint)
-
NmeaGpsPoint
public NmeaGpsPoint(String currentGPGGAsentence, String currentGPRMCsentence)
Creates aNmeaGpsPointfrom the data strings.- Parameters:
currentGPGGAsentence- the GPGGA Nmea sentence. If null it is discarded.currentGPRMCsentence- the GPRMC Nmea sentence. If null it is discarded.
-
-