Provides access to the current geographic location.
The Geolocator class has these types of members:
The Geolocator class has these constructors.
|Geolocator||Initializes a new Geolocator object.|
The Geolocator class has these events.
|PositionChanged||Raised when the location is updated.|
|StatusChanged||Raised when the ability of the Geolocator to provide updated location changes.|
The Geolocator class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|GetGeopositionAsync||Starts an asynchronous operation to retrieve the current location of the device.|
|GetGeopositionAsync(TimeSpan,TimeSpan)||Starts an asynchronous operation to retrieve the current location of the device.|
The Geolocator class has these properties.
|Read/write||The accuracy level at which the Geolocator provides location updates.|
|Read/write||Gets or sets the desired accuracy in meters for data returned from the location service.|
|Read-only||The status that indicates the ability of the Geolocator to provide location updates.|
|Read/write||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.|
|Read/write||The requested minimum time interval between location updates, in milliseconds. If your application requires updates infrequently, set this value so that the location provider can conserve power by calculating location only when needed.|
This example shows how to call GetGeopositionAsync.
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|None supported [Windows Store apps only]|
Minimum supported phone
|Windows Phone 8|