Skip to main content
Open topic with navigation CAPL Functions » J1939 » GNSS NL » GNSSGetCurLat

GNSSGetCurLat

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

double GNSSGetCurLat();

Description

The function returns the current latitude at which the receiver is located. If a value of 0.0 is returned, the GNSSGetLastError function must be used to check whether the value is valid (see error codes).

Parameters

Return Values

current latitude (in degrees)

Example

double lat;
lat = GNSSGetCurLat();

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