The transport location is initialized to the transport location defined on the customer's delivery address. If said transport location is not mentioned on the delivery address, it will be initialized to the transport location associated with the delivery method mentioned on the Ship-to-Customer.
When transforming a document, the transport location is passed on to the child document.