Type Function Library system.* Return value None Revision Current Public Release (2013.1076) Keywords gps, location Sample code /CoronaSDK/SampleCode/ See also location (GPS) system.setLocationAccuracy()
Sets how much distance in meters must be travelled until the next location (GPS) event is sent. Because location events involve hardware that can drain the battery, using larger threshold distances preserve battery life.
system.setLocationThreshold( distance )
-- fire the location event every 100 meters system.setLocationThreshold( 100 )