Hi Swamy,
There is nothing out-of-the-box regarding rail routes in Mapbox. You might want to use
Mapbox Studio to create a custom map.
Best regards,
------------------------------
Patrick Neveu
Positive Thinking Company
------------------------------