method to return nearest rest