> But now comes the tricky part: *I want to use the railroads for planning and
> displaying routes, not the regular roads.*
> *Is this possible?*
Yes, but it would be an ambitious project.
Google have the resources
http://www.google.com/maps?ie=UTF8&f=d&dirflg=r&hl=en&saddr=hague&daddr=amsterdam&ttype=dep&date=9%2F21%2F11&time=10%3A42am
but I don't think you can legally get at them the way you want.
Unless you can identify a rail trip planner that does what you want,
and permits you to mess with its results, you'd need your own dataset
of the rail network, in terms of links, stations and junctions, so
that you could run your own route planning engine against it.
Are you looking at timetable aspects or just physical routes?
Should you consider restrictions like freight-only lines or depots?
As rail networks are not as complicated as roads, it should be
possible to manually gather the data.
The animation part is trivial by comparison, just add the polyline
data representing the curly physical path of each link to your
dataset, and animate on that by developing from the example you've
described.