PositionAccuracy Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the requested accuracy level for the ___location data that the application uses.
public enum class PositionAccuracy
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PositionAccuracy
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PositionAccuracy
var value = Windows.Devices.Geolocation.PositionAccuracy.default
Public Enum PositionAccuracy
- Inheritance
-
PositionAccuracy
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
App capabilities |
___location
|
Fields
Name | Value | Description |
---|---|---|
Default | 0 | Optimize for power, performance, and other cost considerations. |
High | 1 | Deliver the most accurate report possible. This includes using services that might charge money, or consuming higher levels of battery power or connection bandwidth. An accuracy level of |
Remarks
The PositionAccuracy setting controls the balance between ___location accuracy and power consumption.
Accuracy vs power consumption
Default
: Balanced approach optimizing for typical scenarios. Uses the most appropriate available ___location source based on signal quality and power considerations.High
: Maximum accuracy using all available ___location sources, including GNSS when possible. Consumes more battery power and may take longer to obtain a position.
Tip
Use Default
accuracy for most applications. Only use High
when your app specifically requires the highest
possible precision and the user experience justifies the additional power consumption.
Note
For fine-grained accuracy control, use DesiredAccuracyInMeters instead of this enum to specify the accuracy requirement in meters.