GeoCoordinateWatcher Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
A provider class exposing the Windows Phone location service.
Assembly: System.Device (in System.Device.dll)
XMLNS for XAML: Not mapped to an xmlns.
The GeoCoordinateWatcher type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | GeoCoordinateWatcher() | Instantiates a new instance of the GeoCoordinateWatcher class with the DesiredAccuracy value of Default. |
![]() | GeoCoordinateWatcher(GeoPositionAccuracy) | Instantiates a new instance of the GeoCoordinateWatcher class with the provided DesiredAccuracy value. |
| Name | Description | |
|---|---|---|
![]() | DesiredAccuracy | The desired accuracy for data returned from the location service. |
![]() | MovementThreshold | The minimum distance that must be travelled between successive PositionChanged events. |
![]() | Permission | The application’s level of access to the location service. |
![]() | Position | The most recent position obtained from the location service. |
![]() | Status | The status of the location service. |
| Name | Description | |
|---|---|---|
![]() | Dispose | Releases managed and unmanaged resources used by the GeoCoordinateWatcher and stops the acquisition of data from the location service. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Releases unmanaged resources and performs other cleanup operations before the GeoCoordinateWatcher is reclaimed by garbage collection. (Overrides Object::Finalize().) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnPositionChanged | Raises the PositionChanged event. |
![]() | OnPositionStatusChanged | Raises the PositionChanged event. |
![]() | OnPropertyChanged | Raises the PropertyChanged event for the GeoCoordinateWatcher class. |
![]() | Start() | Security Critical. Starts the acquisition of data from the location service. |
![]() | Start(Boolean) | Security Critical. Starts the acquisition of data from the location service. |
![]() | Stop | Security Critical. Stops the acquisition of data from the location service. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TryStart | Security Critical. Attempts to start the acquisition of data from the location service. If the provided timeout interval is exceeded before the location service responds, the request for location is stopped and the method returns false. |
| Name | Description | |
|---|---|---|
![]() | PositionChanged | Occurs when the location service detects a change in position. |
![]() | StatusChanged | Occurs when the status of the location service changes. |
| Name | Description | |
|---|---|---|
![]() ![]() | INotifyPropertyChanged::PropertyChanged | Occurs when a GeoCoordinateWatcher property changes. |
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_LOCATION | Windows Phone 8, Windows Phone OS 7.1 |
ID_CAP_NETWORKING | Windows Phone 8, Windows Phone OS 7.1 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.





