Where you have the freight car, that should be your vehicle with the longest overhang, (ie bogie centre pivot to end of vehicle/coupler).
On the adjoining track, you should run your longest vehicle, (ie between bogie centres), because there is a slight curve there & it will overhang on the inside of the curve.
Then add about a quarter of an inch for safety.