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 static IMessageCompassValue FromMessageParts(string svalue, string smagneticortrue) { return(Create(double.Parse(svalue), MessageFormatting.ParseOneLetterEnumByValue <MagneticOrTrue>(smagneticortrue))); }