Routes by railways

Hello! Is it possible to create route by a railway stations?

Finding railway stations is possible with the Geocoding API or do you mean a route with public transport? This is currently not possible with our API, still you can have a look at the public transit module of our open source project: if you do not want it to be time dependent you could also create a vehicle profile that accepts only highway=rail ways

Thanks, but where to write this highway=rail ways?