Skip to main content

Documentation Index

Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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");
}