PINE64
GPS API - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+--- Thread: GPS API (/showthread.php?tid=9629)



GPS API - iann - 04-10-2020

Hi there,
I am willing to use the pinephone for a project needing GPS positionning.

My software will execute on Linux Ubuntu Touch using a GO (golang) binary.

Could you provide reference documentation or explain how I could access the GPS coordinate of the smartphone ?

Thanks for your help

Best


RE: GPS API - wibble - 04-12-2020

You probably need to look at GPSD. I don't know whether they've enabled it by default in the ubuntu side yet, but on PostmarketOS it's configured to start and stop the gps device as necessary.