std::string input = "$GPRMC,012345.67,A,4921.3547,N,12301.6848,W,0.01,60.00,010120,,*1D"; bool isValid = NMEAInputLine::ReadChecked(input);
std::string input = "$GPGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47"; bool isValid = NMEAInputLine::ReadChecked(input);In this example, we pass another NMEA line as a string to the ReadChecked function. The line contains GPS position data, but it is not valid. The function returns false, indicating that the line is not valid. Package Library: The package library seems to be a custom cpp library that includes the NMEAInputLine function.