How to avoid wrong locations in android while getting locations through FusedLocation?

84 Views Asked by At

I am getting device' locations through fused location service, then sending these location to backend to draw line on map. It is working fine. As we know, fused location is a free service and it has low accuracy (as compared to google paid services), when user stops on a location for a while (e.g: for 30 minutes), It will draw random lines. As shown in image:

enter image description here

I am calculating distance from these location, now when I am calculating distance in this scenario, it will also calculate distance of this cluster/random lines. How can I avoid this extra distance?

0

There are 0 best solutions below