get horizontal and vertical accuracy in android device
I am developing location tracker application in android. When
public void onLocationChanged(Location location) {
System.out.println(location);
}
so it gives meLocation[mProvider=network,mTime=1302690466456,mLatitude=21.1596426,mLongitude=72.8072426
,mHasAltitude=false,mAltitude=0.0,mHasSpeed=false,mSpeed=0.0,mH开发者_如何转开发asBearing=false,mBearing=0.0
,mHasAccuracy=true,mAccuracy=75.0,mExtras=Bundle[mParcelledData.dataSize=148]]
I want to get horizontal as well as vertical accuracy.. How to get these 2 values.. Thanks in advance
It's been 8 years 3 months. Probably you have found the solution. It may help others like me who is looking for a help in getting horizonal and vertical accuracy.
In Android Location documentation, it states that
- getAccuracy() Get the estimated horizontal accuracy of this location, radial, in meters.
- getVerticalAccuracyMeters() Get the estimated vertical accuracy of this location, in meters.
- You may find all the location related services and functionalities in the following link managed by Android
https://developer.android.com/reference/android/location/Location
=======
There are no vertical or horizontal accuracy. Accuracy is applied to position at all.
It is possible to get horizontal accuracy read it.
http://developer.android.com/reference/android/location/LocationProvider.html
Returns a constant describing horizontal accuracy of this provider. If the provider returns finer grain or exact location, ACCURACY_FINE is returned, otherwise if the location is only approximate then ACCURACY_COARSE is returned.
精彩评论