Distance estimation from cognitive maps