I'm getting current location in my app by LocationServices API FusedLocationApi. Which gets location from gps, wifi and cell towers. When drawing route by geopoints I find very strange behavior in one place. Staying in this place I get points and one of them have coordinates near me and another have coordinates of a place which is more than 0.5 kilometers from me. And all points that are far from me lies in place which radius is 3-5 meters. The accuracy I get from Location method getAccuracy() is rather high. The only reason of it I see in long range wifi. The only solution I find yet is to disable sending points of the place which radius is 3-5 meters to my server. Does anybody knows how can I identify this wifi point and ban it. I thought maybe Location method getProvider() give me some data but it allways writes "fused"))
Asked
Active
Viewed 47 times
0
-
well, it might be a GPS mistake. You maibe have to filter out such a strange results with some filterring algorithm – Vladyslav Matviienko Aug 31 '16 at 12:31
-
I thought about it. For example disable the next point if it's too far away. But if the route starts from the "wrong" point I'll disable all points of the route. – Leonid Aug 31 '16 at 12:37
-
Well, you can not just delete the *wrong* points, but store them somewhere, and deside, what points are actually *wrong* later, when you have enough points for statistics – Vladyslav Matviienko Aug 31 '16 at 13:08
-
Thanks. I'll try it. – Leonid Sep 02 '16 at 08:48