The (old?) train schedule API allows setting the rail direction (see https://lua-api.factorio.com/latest/con ... ecord.html)
The new LuaSchedule API offers AddRecordData for adding a record: https://lua-api.factorio.com/latest/con ... dData.html which does not contain the rail direction.
This seems to be an oversight.
[2.0.37] LuaSchedule lacks rail direction
Re: [2.0.37] LuaSchedule lacks rail direction
Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.