Compute the relation between the provided box and distance query. This only works for boxes that do not cross the dateline.