If the use case for "take to nearest" stockpile is enough to push for it, might I suggest a "take to named stockpile" instead?
Give the bill a stockpile name, and if it exists that's the destination. It's a feature that would include the same use cases, plus a bunch more obscure ones.
If you were going to check through a list of stockpiles to find the closest anyway, it shouldn't be any more difficult to check the name (I think, haven't looked at stockpile code).
Give the bill a stockpile name, and if it exists that's the destination. It's a feature that would include the same use cases, plus a bunch more obscure ones.
If you were going to check through a list of stockpiles to find the closest anyway, it shouldn't be any more difficult to check the name (I think, haven't looked at stockpile code).