fix route calculation, support more than one train taking the same route