Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does anyone know any train timetable API service? [closed]

UPDATE

time is passing, but something is moving (europe): a friend of mine showed me this: http://project.irail.be/ Atm it works just for Belgium.

im wondering if there is any online service who provide API about the train timetables (arrivals, departure, etch..), at least for the european stations.

I know www.bahn.de, who provide the accurated timetables for many european countries, but i didin't find any similar to a api service.

My goal (well, just a future-project) is to develope an application like gmaps, but instead of giving the car-trip i would like to give the train-trip.. you know, the user set the departure day, time and station, then the first arrival, maybe then add another one, and so on.

So, there is something like, that can be queryed by php/python/javascript?

Edit: if can help, im wondering to build a service to plan an inter-rail trip! (and any help will be really appreciate)

Im stuck. Google's public-service api rely on the information that every local company makes avaiable, much branches are missing (for example, is almost impossible to use it to build an itinerary that touches two or more regions of Europe. As i said before, the only service that i know doing it good is the bahn.de, they really have all the data.. but no api. I tryed to parse theyre result page (in order to use them as API), but seem like the markup is been build exactly to avoid that.. maybe they have business plans behind that or whatever, but i dont think they will ever release some API.. so, my project is going on without this function (p.s: my project is about non-profit cultural organizations, we wont make war to anyone ;P)

@El Goorf: if you find a way, and consider the idea of sharing it, count on my hand if need help!

like image 469
Strae Avatar asked May 28 '09 07:05

Strae


2 Answers

FYI. National Rail in the UK don't provide an API for their UK train data and get very funny about developers calling forms/scraping pages from third party apps. It's a very strange closed model. Google or the BBC might be your best bet, although the BBC provide travel information as opposed to time tables.

like image 189
andrewdotcom Avatar answered Oct 29 '22 20:10

andrewdotcom


Not exactly what you're looking for, but have you looked at http://www.livedepartureboards.co.uk/ldbws/? It is an API for the UK railways... but for arrivals and departures only, not planning more than a couple of hours in advance!

Still, it's a start!

like image 26
John Smith Avatar answered Oct 29 '22 20:10

John Smith