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 » GNSSGetCurLon

GNSSGetCurLon

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

double GNSSGetCurLon();

Description

The function returns the current longitude 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 longitude (in degrees)

Example

double lon;
lon = GNSSGetCurLon();

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