Solution to the shortest path problem in campus