public Position(string lat, string ns, string lon, string ew) { Latitude = ParseNmeaCoordinateElement(lat); LatitudeHemisphere = MessageFormatting.ParseOneLetterEnumByValue <NorthSouth>(ns); Longitude = ParseNmeaCoordinateElement(lon); LongitudeHemisphere = MessageFormatting.ParseOneLetterEnumByValue <EastWest>(ew); }
public override string ToString() { return ($"{FormatCoordinateElement(Latitude)},{MessageFormatting.F(LatitudeHemisphere)},{FormatCoordinateElement(Longitude)},{MessageFormatting.F(LongitudeHemisphere)}"); }
public static IMessageCompassValue FromMessageParts(string svalue, string smagneticortrue) { return(Create(double.Parse(svalue), MessageFormatting.ParseOneLetterEnumByValue <MagneticOrTrue>(smagneticortrue))); }