Distances between destinations are now calculated. The app chooses the shortest distance for each leg of the journey. All calculations are done long hand (i.e. without loops and arrays). This is a crime against software and badly needs refactoring.