# Positioning Service in Legato

**URL:** <https://forum.legato.io/t/positioning-service-in-legato/2521>\
**Category:** Legato Application Framework\
**Created:** [July 3, 2017, 7:18am UTC](https://forum.legato.io/t/positioning-service-in-legato/2521 "2017-07-03T07:18:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![white\_fish](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@white\_fish](https://forum.legato.io/u/white_fish)\
**Post date:** [July 3, 2017, 7:18am UTC](https://forum.legato.io/t/positioning-service-in-legato/2521/1 "2017-07-03T07:18:18Z")

</div>

Hello,

what is the difference between the Positioning and the GNSS (-Service) in Legato ([Positioning - Legato Docs](http://legato.io/legato-docs/latest/legatoServicesPositioning.html))?

When should I use the one or the other?  
I want to get the location of a device, but it is in a room. I am a little bit confused, because I thought it would not be possible to get a GPS Location in a closed room. So why is the working? Does f. e. the le\_pos Library use the Mobile Network Cell information to get the location? (do the magic 😃 )

Thanks

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [July 4, 2017, 3:40pm UTC](https://forum.legato.io/t/positioning-service-in-legato/2521/2 "2017-07-04T15:40:56Z")

</div>

Hello @white_fish,

So to my understanding the le\_pos.api does not really care about what the backend is.  
It provides with high-level info about where your target is, where it’s heading to, … with some accuracy measurements.

The le\_gnss.api is much lower level, and is about control specific for GPS-like positioning.  
If you look at the le\_gnss, it doesn’t provided you with any positioning measurements.

Make sure that what you consider as working is, indeed, working and that it doesn’t return some out-of-bounds results.  
There is `gnss` tool that can be useful in your endeavor.  
For instance check `gnss get status`.

As for why it would be working in a closed-room, I can generally get it work next to a window.  
There is some way to assist the GNSS module (cf [GNSS - Legato Docs](http://legato.io/legato-docs/latest/c_gnss.html#le_gnss_Assisted_GNSS)) but I’m not sure there is anything that is done by default, although I could be wrong.

---

<div class="post-metadata">

**Author:** ![white\_fish](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@white\_fish](https://forum.legato.io/u/white_fish)\
**Post date:** [July 5, 2017, 5:39am UTC](https://forum.legato.io/t/positioning-service-in-legato/2521/3 "2017-07-05T05:39:31Z")

</div>

Thanks! I was a little bit confused about the two apis. But as a result, I will use the le\_pos.api.

Have a nice day!
