A computer-implemented method for unloading a plurality of items (230A-N) from a plurality of platforms, the method comprising: providing an antenna for detecting a plurality of items (230A-N) upon a plurality of platforms, the plurality of platforms being surfaces of wagons (215A-N), each of the wagons (215A-N) having a flat surface that one or more of the plurality of items (230A-N) may rest upon, the wagons (215A-N) being connected together and traveling on a track; providing an unloading device for unloading the plurality of items from the plurality of platforms; detecting, with the antenna, a first item in the plurality of items (230A-N) for a first period of time and a second item in the plurality of items (230A-N) for a second period of time wherein the first item and the second item are upon at least one platform in the plurality of platforms; performing an analysis on the first period of time and the second period of time to determine if the first item and the second item are upon the one platform or are upon consecutive platforms, the analysis utilizing an overlapping time interval algorithm to calculate the relative location of the items (230A-N), wherein the overlapping time interval algorithm comprises: - determining, in case the antenna detects the second item within a time limit after detecting the first item, whether the antenna still detects the first item, wherein if the antenna still detects the first item then the first item and the second item are located on the same platform, otherwise if the antenna no longer detects the first item then the second item is located on the consecutive platform; communicating to the unloading device that the first item and the second item are upon the same platform if the analysis determines the first item and the second item are upon one platform, otherwise communicating to the unloading device that the first item and the second item are upon consecutive platforms; and unloading, by the unloading device, the first item and the second item from one platform if the first item and second item are upon the same platform, or from consecutive platforms if the first item and the second item are upon consecutive platforms. providing an antenna for detecting a plurality of items (230A-N) upon a plurality of platforms, the plurality of platforms being surfaces of wagons (215A-N), each of the wagons (215A-N) having a flat surface that one or more of the plurality of items (230A-N) may rest upon, the wagons (215A-N) being connected together and traveling on a track; providing an unloading device for unloading the plurality of items from the plurality of platforms; detecting, with the antenna, a first item in the plurality of items (230A-N) for a first period of time and a second item in the plurality of items (230A-N) for a second period of time wherein the first item and the second item are upon at least one platform in the plurality of platforms; performing an analysis on the first period of time and the second period of time to determine if the first item and the second item are upon the one platform or are upon consecutive platforms, the analysis utilizing an overlapping time interval algorithm to calculate the relative location of the items (230A-N), wherein the overlapping time interval algorithm comprises: - determining, in case the antenna detects the second item within a time limit after detecting the first item, whether the antenna still detects the first item, wherein if the antenna still detects the first item then the first item and the second item are located on the same platform, otherwise if the antenna no longer detects the first item then the second item is located on the consecutive platform; - determining, in case the antenna detects the second item within a time limit after detecting the first item, whether the antenna still detects the first item, wherein if the antenna still detects the first item then the first item and the second item are located on the same platform, otherwise if the antenna no longer detects the first item then the second item is located on the consecutive platform; communicating to the unloading device that the first item and the second item are upon the same platform if the analysis determines the first item and the second item are upon one platform, otherwise communicating to the unloading device that the first item and the second item are upon consecutive platforms; and unloading, by the unloading device, the first item and the second item from one platform if the first item and second item are upon the same platform, or from consecutive platforms if the first item and the second item are upon consecutive platforms.