Distance and direction problems