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:
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?