# Gps: gpsd - gnsd platformAdapter bridge added

**URL:** <https://forum.legato.io/t/gps-gpsd-gnsd-platformadapter-bridge-added/4672>\
**Category:** Legato Application Framework\
**Created:** [September 4, 2019, 2:05pm UTC](https://forum.legato.io/t/gps-gpsd-gnsd-platformadapter-bridge-added/4672 "2019-09-04T14:05:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![svogl](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/svogl/32/734_2.png) [@svogl](https://forum.legato.io/u/svogl)\
**Post date:** [September 4, 2019, 2:05pm UTC](https://forum.legato.io/t/gps-gpsd-gnsd-platformadapter-bridge-added/4672/1 "2019-09-04T14:05:23Z")

</div>

We needed to interface an external gps receiver to our custom board.

As we need to use the gps data in external programs as well as in Legato, I started with a minimal platformAdapter based on the code in the simu/ layer to read data via the libgps library and forward it into Legato.

If you’re interested, the current state can be found on github: [GitHub - voxel-legato/legato-PlatformAdaptor-yocto: Legato platformAdaptor layer for more generic ARM boards based on yocto builds. based on PA-AT](https://github.com/voxel-legato/legato-PlatformAdaptor-yocto)

to use it, simply go to your legato repository and clone into the platformAdapter directory:

```
git clone https://github.com/voxel-legato/legato-PlatformAdaptor-yocto platformAdaptor/yocto
# and change the provider for gnss:
legato@nova:~/proj/leg_repo/legato$ grep yocto targets/*
targets/raspi.sinc: LEGATO_GNSS_PA = ${PA_DIR}/yocto/components/le_pa_gnss

```

right now, I only map coordinates but all available information is stored in the gpsd state and can be added easily.

Hope this helps someone  
Simon

---

<div class="post-metadata">

**Author:** ![plu](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@plu](https://forum.legato.io/u/plu)\
**Post date:** [September 12, 2019, 8:35am UTC](https://forum.legato.io/t/gps-gpsd-gnsd-platformadapter-bridge-added/4672/2 "2019-09-12T08:35:23Z")

</div>

hi @svogl,  
many thanks for this!  
Best Regards,
