context: Southampton is also served by the rail network, which is used both by freight services to and from the docks and passenger services as part of the national rail system. The main station in the city is Southampton Central. Rail routes run east towards Portsmouth, north to Winchester, the Midlands and London, and westwards to Bournemouth, Poole, Dorchester, Weymouth, Salisbury, Bristol and Cardiff. The route to London was opened in 1840 by what was to become the London and South Western Railway Company. Both this and its successor the Southern Railway (UK) played a significant role in the creation of the modern port following their purchase and development of the town's docks.
question: సౌతాంప్టన్ నుండి లండన్ వరకు రైలు మార్గం ఏ సంవత్సరంలో తెరవబడింది?
answers: 1840