Transport - Segment - Delivery
Transportis our main model. It is linked to a single main carrier (
carrier_addressfield), and most importantly can store multiple
Transportmust contain at least one
Segmentsrepresent the way the
Deliveriescontained in the transport will be effectively delivered. We can say the
Deliveryis what the carrier is supposed to do, and the
Segmentis how the carrier does it. A Segment object has one origin and one destination (again, both are
Siteobjects), and a
Truckerand vehicle and/or trailer license plates.
For a simple transport (one
Segment), there are only two sites, A and B. The Delivery and the Segment have the same origin and the same destination. The Delivery contains the shipping data, and the segment the trucker data.
Simple Transport Example
Let's now consider a more complex transport. The carrier is ordered to ship two goods from two different origins to the same destination. One trucker will grab the goods, will ship them to a storehouse and another trucker will drive them from the storehouse to the destination.
More complex transport example
A is the first loading point stop, B is the second one, C is the storehouse stop and D is the unloading stop.