What are the rough costs of

  1. constructing, and
  2. maintaining

a kilometer of a 1+1 road and single track rail? Is rail at all competitive in this regard?

^(I realise it also depends on the type of cargo – I’m curious about rail transporting everything as was the case in the 1800s)