Calculate path between two locations