system.setLocationThreshold()

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

Overview

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.

Syntax

system.setLocationThreshold( distance )
distance (required)

Number. Location event distance (in meters). Defaults to 0 meters.

Examples

-- fire the location event every 100 meters
system.setLocationThreshold( 100 )