Geometric Hardy's inequalities with general distance functions