locationmanager - Interpreting the Android Location Manager Results -


i'm writing first android application, , have utilized android location manager obtain gps readings. bit confused accuracy readings i'm getting. example:

  1. i used tape measure out 1000 linear feet between 2 points.

  2. while standing @ point started location manager update requests until received accuracy of +/- 4 feet.

  3. i hit button in app save particular location (private var).

  4. while location manager continues poll walked line until reached point b.

  5. once here waited accuracy reading of +/- 4 feet.

  6. i hit button takes location , performs distance measurement between 2 points i.e.:

    double distance = startlocation.distanceto(endlocation);

  7. the returned distance measurement 1000.20 feet.

i realize returned accuracy measurement gps fluctuating, expected distance measurement @ least reflect somewhat. surprised @ it's precision in comparison accuracy readings.

so question should trust value distance measurement, or take consideration accuracy measurement returned gps?

if @ api reference android location see explanation accuracy reading as:

we define accuracy radius of 68% confidence. in other words, if draw circle centered @ location's latitude , longitude, , radius equal accuracy, there 68% probability true location inside circle.

in statistical terms, assumed location errors random normal distribution, 68% confidence circle represents 1 standard deviation. note in practice, location errors not follow such simple distribution.

this accuracy estimation concerned horizontal accuracy, , not indicate accuracy of bearing, velocity or altitude if included in location.

if location not have accuracy, 0.0 returned. locations generated locationmanager include accuracy.

per post looks getaccuracy , distanceto() methods not take each other's measurements consideration. follow advice in post , check out gps benchmark application better information specific hardware. hope helps!:

does location getaccuracy take distanceto() account?


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -