# How to get moving position from GNSS?

**URL:** <https://forum.legato.io/t/how-to-get-moving-position-from-gnss/3219>\
**Category:** Legato Application Framework\
**Created:** [April 19, 2018, 8:46am UTC](https://forum.legato.io/t/how-to-get-moving-position-from-gnss/3219 "2018-04-19T08:46:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hitheshkaranth](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/hitheshkaranth/32/385_2.png) [@Hitheshkaranth](https://forum.legato.io/u/Hitheshkaranth)\
**Post date:** [April 19, 2018, 8:46am UTC](https://forum.legato.io/t/how-to-get-moving-position-from-gnss/3219/1 "2018-04-19T08:46:00Z")

</div>

Hi,  
I want to know how to implement an application which monitors position periodically and update it.  
Question being \>\>\>\>

Which is the best command to do this functionality ?

I did try le\_pos\_Get3DLocation() and le\_pos\_Get2DLocation() this gives me only co ordinates which got updated at the startup. I have no idea on how to implement other commands like le\_pos\_sample\_Get2DLocation() I have tried this command too but failed misrably.

Any help would be appreciated. If Im doing it wrong please suggest me with alterative.

---

<div class="post-metadata">

**Author:** ![JordanZhao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jordanzhao/32/789_2.png) [@JordanZhao](https://forum.legato.io/u/JordanZhao)\
**Post date:** [April 20, 2018, 3:00am UTC](https://forum.legato.io/t/how-to-get-moving-position-from-gnss/3219/2 "2018-04-20T03:00:46Z")

</div>

You may refer to the Sample application named as GpsPublish in MangOH project. You could clone the source code from [Project mangOH · GitHub](https://github.com/mangOH).

---

<div class="post-metadata">

**Author:** ![Hitheshkaranth](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/hitheshkaranth/32/385_2.png) [@Hitheshkaranth](https://forum.legato.io/u/Hitheshkaranth)\
**Post date:** [April 24, 2018, 4:14pm UTC](https://forum.legato.io/t/how-to-get-moving-position-from-gnss/3219/3 "2018-04-24T16:14:55Z")

</div>

Hi @JordanZhao

Sorry for dragging this long but Im unable to locate the application GpsPublish in MangOH project.

---

<div class="post-metadata">

**Author:** ![JordanZhao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jordanzhao/32/789_2.png) [@JordanZhao](https://forum.legato.io/u/JordanZhao)\
**Post date:** [April 25, 2018, 1:51am UTC](https://forum.legato.io/t/how-to-get-moving-position-from-gnss/3219/4 "2018-04-25T01:51:54Z")

</div>

It should be in /mangOH/samples/Demos folder. Try update your mangOH project.

---

<div class="post-metadata">

**Author:** ![Hitheshkaranth](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/hitheshkaranth/32/385_2.png) [@Hitheshkaranth](https://forum.legato.io/u/Hitheshkaranth)\
**Post date:** [April 25, 2018, 4:48am UTC](https://forum.legato.io/t/how-to-get-moving-position-from-gnss/3219/5 "2018-04-25T04:48:26Z")

</div>

Hi @JordanZhao

Thanks for the reply.I did use the project for reference and got the follwing error

> > > type le\_cfg\_IteratorRef\_t could not be resolved  
> > > Symbol LE\_CFG\_TYPE\_INT could not be resolved  
> > > Symbol DATAROUTER\_CACHE could not be resolved

How can i resolve this ?

---

<div class="post-metadata">

**Author:** ![JordanZhao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jordanzhao/32/789_2.png) [@JordanZhao](https://forum.legato.io/u/JordanZhao)\
**Post date:** [April 25, 2018, 7:52am UTC](https://forum.legato.io/t/how-to-get-moving-position-from-gnss/3219/6 "2018-04-25T07:52:57Z")

</div>

You can add this app in mangOH.sdef for compiling.

---

<div class="post-metadata">

**Author:** ![Hitheshkaranth](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/hitheshkaranth/32/385_2.png) [@Hitheshkaranth](https://forum.legato.io/u/Hitheshkaranth)\
**Post date:** [April 25, 2018, 10:14am UTC](https://forum.legato.io/t/how-to-get-moving-position-from-gnss/3219/7 "2018-04-25T10:14:16Z")

</div>

@JordanZhao thanks for the help that got it working.
