Bozow
Bozow

Reputation: 139

Location Accuracy on Windows Phone 8

Is it somehow possible to get the location accuracy?

I know how to get the location, but I would like to know the location accuracy radius in meters, for example.

Thanks to all in advance.

Upvotes: 0

Views: 648

Answers (2)

Real World
Real World

Reputation: 1719

If you have a position as a Geoposition you can do this

Geoposition MyGeoPosition
...
double acc = MyGeoPosition.Coordinate.Accuracy;

Accuracy is returned in meters.

Upvotes: 0

Norbert Pisz
Norbert Pisz

Reputation: 3440

When You use class Geolocator:

Geolocator geolocator = new Geolocator();
var acc=geolocator.DesiredAccuracyInMeters;

From docs:

DesiredAccuracyInMeters

Windows Phone only. Gets or sets the desired accuracy in meters for data returned from the location service.

More information about class: LINK

Upvotes: 2

Related Questions