GNSS position reading functions

In legato there are two functions to read the position.

le_gnss_GetLocation and le_pos_sample_Get2DLocation

Does anyone know what the difference is?

did you check the source code?