PositionSource Enum
Definition
Indicates the source used to obtain a Geocoordinate.
public enum class PositionSource
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum PositionSource
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PositionSource
var value = Windows.Devices.Geolocation.PositionSource.cellular
Public Enum PositionSource
- Inheritance
-
PositionSource
- Attributes
Windows 10 requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
App capabilities |
location
ID_CAP_LOCATION [Windows Phone]
|
Fields
Cellular | 0 | The position was obtained from cellular network data. |
Default | 5 | (Starting with Windows 10, version 1607.) The position was obtained from the user's manually-set location. |
IPAddress | 3 | (Starting with Windows 8.1.) The position was obtained from an IP address. |
Obfuscated | 6 | (Starting with Windows 10, version 1607.) The position was obtained via the coarse location feature and was therefore intentionally made inaccurate to a degree. |
Satellite | 1 | The position was obtained from satellite data. |
Unknown | 4 | (Starting with Windows 8.1.) The position was obtained from an unknown source. |
WiFi | 2 | The position was obtained from Wi-Fi network data. |
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | Default |
1607 | 14393 | Obfuscated |