Geolocator.MovementThreshold | movementThreshold property

Gets and sets the distance of movement, in meters, relative to the coordinate from the last PositionChanged event, that is required for the Geolocator to raise a PositionChanged event.

Syntax


var movementThreshold = geolocator.movementThreshold;
geolocator.movementThreshold = movementThreshold;

Property value

Type: Number [JavaScript] | System.Double [.NET] | float64 [C++]

The distance of required movement, in meters, for location services to raise a PositionChanged event. The default value is 0.

Remarks

The default report interval is 1 second or as frequent as the hardware can support – whichever is shorter. Location can be updated at a different frequency by specifying a MovementThreshold or setting ReportInterval to a different value. If your app sets MovementThreshold and ReportInterval, location will be updated according to MovementThreshold.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.winmd

See also

Detect a user's location
Respond to location updates
Set up a geofence
Geolocator

 

 

Show:
© 2015 Microsoft