Most of the major railways (for example Metra in Chicago) has their own standard drawings that present the distance and height of the platform corner related to the top of rail elevation and to the centerline of track. Based on those dimensions and your car characteristics you should be able to...