# GNSS position reading functions

**URL:** <https://forum.legato.io/t/gnss-position-reading-functions/6485>\
**Category:** Legato Application Framework\
**Created:** [April 20, 2023, 12:48pm UTC](https://forum.legato.io/t/gnss-position-reading-functions/6485 "2023-04-20T12:48:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apiller](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@apiller](https://forum.legato.io/u/apiller)\
**Post date:** [April 20, 2023, 12:48pm UTC](https://forum.legato.io/t/gnss-position-reading-functions/6485/1 "2023-04-20T12:48:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 20, 2023, 1:04pm UTC](https://forum.legato.io/t/gnss-position-reading-functions/6485/2 "2023-04-20T13:04:17Z")

</div>

did you check the source code?

> <https://github.com/legatoproject/legato-af/blob/master/components/positioning/posDaemon/le_gnss.c>

> <https://github.com/legatoproject/legato-af/blob/master/components/positioning/posDaemon/le_pos.c>
