double GNSSGetCurLat();
double lat; lat = GNSSGetCurLat(); if (lat == 0 && GNSSGetLastError() != 0 ) { write("Error: Invalid current latitude"); }