getNearestEntity