I would have guessed it was more complicated than just sending the nearest one, because you would want as many customers as possible to have an acceptable maximum waiting time rather than some having a very wait at the expense of somebody else having a very elongated one. You might also want your algorithm to process allocations in batches so as to optimise the overall distance travelled.
|