Train route distance calculation

I am new to OpenStreetMap and I need to compute distance between various route types. Route types are follows.

  1. Motorcar, Fastest
  2. Motorcar, Shortest
  3. Train.

Looks like first two routes are possible with implementation. However they don’t seem to support Train routes.

Can anyone here point me to the right direction?

Abdullah Atta

    1. has a lot of realisations -
  1. the only I knew of is

Or maybe you can write a new one.

Thanks for the help. I will evaluate your links further to see whether they fulfill my requirements.