The film was shot in various locations in Yorkshire, Oxford and London. The railway station scenes, the train interiors, and the scene in the railway café, were shot at Keighley Station, using trains provided by the Keighley and Worth Valley Railway. The landscape shots of period trains were filmed at the heritage track of the The North Yorkshire Moors Railway. The Welbeck Estate in Nottinghamshire provided several locations, including the scenes at Uppingham school, Melrose house and the Etaples field hospital. The lake scenes were filmed in Darley Dale in Derbyshire.