The platform will need to be as long as the longest rake of coaches you are running plus the length of the engine....
When new to the world of model railways, it's likely you will read many articles explaining the best way to go about those crucial first steps, and you may well be advised to make a general-purpose locomotive one of your first rolling stock...
