kotlin android get distance between two locations
Location startPoint=new Location("locationA"); startPoint.setLatitude(23.81721); startPoint.setLongitude(51.32351); Location endPoint=new Location("locationA"); endPoint.setLatitude(15.81721); endPoint.setLongitude(26.98108); double distance=startPoint.distanceTo(endPoint);