updates to traveldistance method in traininfo