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:
i used tape measure out 1000 linear feet between 2 points.
while standing @ point started location manager update requests until received accuracy of +/- 4 feet.
i hit button in app save particular location (private var).
while location manager continues poll walked line until reached point b.
once here waited accuracy reading of +/- 4 feet.
i hit button takes location , performs distance measurement between 2 points i.e.:
double distance = startlocation.distanceto(endlocation);
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!:
Comments
Post a Comment