Skip to main content

C2xGetReferencePoint

Valid for: CANoe DE

Function Syntax

  • long C2xGetReferencePoint(char* refPointName, out float latitude, out float longitude) //form 1
  • long C2xGetReferencePoint(int refPointID, out float latitude, out float longitude) //form 2

Description

This function gets the latitude and longitude position of the specified reference point.

Parameters

  • refPointName (form 1): Name of the scenario reference point.
  • refPointID (form 2): ID of the scenario reference point.
  • latitude: The latitude value of the point as float value.
  • longitude: The longitude value of the point as float value.

Return Values

  • 0: Success
  • -1: Reference Point not found

Example