How does le_gnss_GetLastSampleRef work?

Will it be fetching data from a buffer which is automatically updated in the background as per the sampling interval and other GNSS parameters we provide ? Or will it work only in cojunction with a position handler and a thread ?

Hi codegit001,
le_gnss_GetLastSampleRef() API is to get the last updated position using the lastpositionsample buffer.
While the position handler(le_gnss_AddPositionHandler) is used to add/register handler function to receive the EVENT ‘le_gnss_Position’ when there is any new position.