Find the shortest path between two endpoints using the bus.