system.setLocationAccuracy()

Type Function
Library system.*
Return value none
Revision Release 2024.3703
Keywords gps, location
See also location (GPS)
system.setLocationThreshold()

Overview

Sets the desired accuracy of location (GPS) events to distance in meters. Note: the actual accuracy depends on the capabilities of the device and/or platform. On the iPhone, accuracy is limited to discrete distances: < 10, 10, 100, 1000, and 3000 meters. Higher accuracy (smaller distances) requires more battery life, so use larger distance to preserve battery life.

Syntax

system.setLocationAccuracy( distance )
distance (required)

Number. Location accuracy in meters.

Examples

-- set GPS accuracy to 10 meters
system.setLocationAccuracy( 10 )