When a single line item has been split across multiple locations due to stock, it is still grouped as a single delivery group when queried via shopify functions. in addition, split shipping does not kick in although this triggers multiple carrier service API calls.
For example if product A was stocked at location 1, location 2 and location 3, each at 1x unit.
A customer purchased 3x units, this will be fulfilled by 1 item from each location.
Carrier service correctly makes 3 separate calls for each location and 1x item, however the deliveryGroup grouping still has this as a single grouping. It should reflect 3 separate delivery groups.
