Change getNearestDistance method, format change