However, they did not have mandatory force, and after considerable rivalry, the Caledonian Railway obtained an authorising Act of Parliament on 31 July 1845, for lines from Glasgow and Edinburgh to Carlisle.