double GNSSGetCurLon();
double lon; lon = GNSSGetCurLon(); if (lon == 0 && GNSSGetLastError() != 0 ) { write("Error: Invalid current longitude"); }