Joint railway system