udpate factories, calculate exact route distance