com.buglabs.nmea.sentences
Class PositionSentence
java.lang.Object
com.buglabs.nmea.sentences.NMEASentence
com.buglabs.nmea.sentences.PositionSentence
- Direct Known Subclasses:
- GGA, RMC
public abstract class PositionSentence
- extends NMEASentence
A NMEA class for position.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PositionSentence
public PositionSentence(java.lang.String type)
getLatitude
public java.lang.String getLatitude()
isEmpty
public boolean isEmpty()
- Returns:
- true if either longitude or latitude are null or empty, false
otherwise.
setLatitude
protected void setLatitude(java.lang.String latitude)
getLongitude
public java.lang.String getLongitude()
getLatitudeAsDMS
public DegreesMinutesSeconds getLatitudeAsDMS()
getLongitudeAsDMS
public DegreesMinutesSeconds getLongitudeAsDMS()
setLongitude
protected void setLongitude(java.lang.String longitude)