With the coming of the railway line to Gympie , the coastal towns , which were founded as ports for the early river trade , were bypassed . After construction of the railway line to Gympie , the coastal and river towns , being mostly ports for the early river trade , were bypassed .