Each railroad authorized to construct, operate, or maintain a road within this state, may have and use equal room, ground, rights, privileges, and conveniences for its tracks, switches, sidings, and turnouts on any levee, river bank or front, or public landing, and on any street, block, alley, square, or public ground within an incorporated municipality, any charter or ordinance of any municipality to the contrary notwithstanding. To accomplish this, it may adjust, with other railroads, the ground to be occupied by each with such tracks, switches, sidings, and turnouts. If the railroads cannot agree upon an adjustment or reasonable compensation for damages caused by the adjustment, the adjustment and compensation shall be determined by the circuit court.
SDCL 49-16A-52