start and end node calculations - logging out the shortest route