Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

Return current device location longitude, or 0 if not supported on current platform.

Example

Example 1: Log current gps location in all three dimensions, as well as location accuracy

(log-status "LNG:" (float->choppedstring (gps-longitude) 6) " LAT:" (float->choppedstring (gps-latitude) 6) 
            " [" (float->choppedstring (gps-accuracy) 4) "] ALT:" (float->choppedstring (gps-altitude) 5))
Clone this wiki locally