Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the HDOP or VDOP values from the GPS LocationManager?

How do I get the HDOP or VDOP values from the GPS LocationManager?

like image 263
david Avatar asked Dec 09 '22 06:12

david


1 Answers

The GPS_Location:

double lo=gps_loc.getLongitude();
double la=gps_loc.getLatitude();

The Horizontal_Accuracy:

int horiAcc=(int)(gps_loc.getAccuracy());

The HDOP:

int hd= (int) (horiAcc/5);
like image 80
Nam Vu Avatar answered May 04 '23 18:05

Nam Vu