Click or drag to resize

GM_GPSGetLocation

Retrieves the current GPS location value. Will return GM_Error_GPSDataNotValid if there we are not tracking a GPS device or we do not have a position fix.

If aGetLatLon is TRUE, the position returned will be in decimal degrees latitude and longitude in the WGS84 datum. If aGetLatLon is FALSE, the position will be returned in the current global coordinate system, as returned by GM_GetProjection and modified by GM_SetProjection.

Syntax
GM_Error_t32 GM_GPSGetLocation
(
GM_Point_t*             aCurPos,        // out: current GPS location
boolean                 aGetLatLon      // in: retrieve coordinates in lat/lon/WGS84 rather than global coords
);