LinkIt ONE provides a built-in GPS device. With the GPS API, you can get GPS data from this device.

The basic flow for controlling GPS is:

powerOn(): Power on GPS

setMode(): Set up work mode (optional)

getData(): Query and process GPS data

powerOff(): Power off GPS

The data returned from getData() may be GPGGA, GPGSA, GPRMC, GPVTG, GPGSV, GLGSV, GLGSA, BDGSV and BDGSA which are standard NMEA information types. Parse them to get the GPS location, time and other details. Refer to http://www.gpsinformation.org/dale/nmea.htm for details on NMEA.