Should any railroad company refuse to allow the connecting switches put in its line, when requested under § 58-17-2620, the other road seeking such connection may proceed to procure the right to use so much of the franchise of the former as may be necessary for such purpose in the manner provided by law for taking private property for the use of a railroad.