Implemented the search for nearby posts