The Beatles filmed at what, in the movie, they assumed to be a temple, and what, in real life, they assumed to be a disused army camp. In fact, it was a ramshackle hospital for handicapped children and old people, the state of which disgusted the Beatle.)
Source: The Complete Beatles Chronicle - Mark Lewisohn