![]() |
Railway Time table
Today I saw my fellow train traveler taking out his spanking new iphone and with a couple of taps on his phone he had the railway timmings on his screen from his setting station to the destination , he took 5 seconds to show me how many trains are from our station to where we were going and how long each would take..... I was jealous and bit unhappy as well.
So, I decided to find out how to build an application similar to that and came across a bunch of xml files that are in Transportexchange format.... now my lack of knowledge in programming on Qt or Pythoin is limiting me to write such an application .... so I need some help from experts. I wish to write it in Qt 4.7 if possible and please suggest where to start...how to read the xpaths etc... Thanks in advance. |
Re: Railway Time table
Quote:
|
Re: Railway Time table
There is an app for maemo called "fahrplan" that should be similar, but for german routes as far as i know.
But maybe a good starting point to look at. And this one can be helpful, too: http://labs.qt.nokia.com/2009/02/11/...gain-reloaded/ |
Re: Railway Time table
@vivmak:
i created a similar app for europe, called "fahrplan", it supports different "backends" so it should be quite easy to implement another backend. if you want to create an app of your own feel free to look at my source. i use xpath aswell. if you want to contribute to fahrplan simple create a garage account and send a request for access to the fahrplan project. |
Re: Railway Time table
Fahrplan also allows other European routes to be returned, I happily used it in Belgum and UK. It uses the DB (Deutsche Bahn) web backend for all of this.
|
Re: Railway Time table
Quote:
I am in Australia and have downloaded a sample data from the local transport authority website in xml format, all files put together are 851 MB. |
Re: Railway Time table
Quote:
But it should be possible to create an offline solution aswell. I think the main think is to determine if the way fahrplan displays the journey is the same you like/the data you have allowes. Currently farplan only support a journey planner, no departure monitor. You can select the from and to station and a time/date. then it searchs for the connections and displays them. If you need details about the connection you can click one of the connections and receive a detail view. is there a way to get hold of the xml data, to check them out? |
Re: Railway Time table
Quote:
http://131500.info/ Sample XML is available at almost end of the following link, its huge, some of the file cant even be loaded to a normal edito on my laptop : http://www.131500.com.au/transport-d...ge-tdx-program |
Re: Railway Time table
Quote:
Quote:
i hope i find time on the next weekend. |
Re: Railway Time table
Did you read this?
The files made available via these links are provided for development and testing purposes only. They do not contain complete up to date information on public transport services and should not be used for production applications or services. |
Re: Railway Time table
Quote:
jinx |
Re: Railway Time table
@smurfy , what you have built is really good and useful but I as not too sure how to prase the HTML and submit request back ( I suppose its creating a URL template and passing the station name or something like that?).
thank you for looking at this, meanwhile I will spend time reading Qt documents and links in this post :) |
Re: Railway Time table
Quote:
Once I sign the licnse agreement the information provided will be from production database. |
Re: Railway Time table
@vivmak:
About the license and the up2date availability of the offline data files. I not had the time yet to look at the license but we must find a way to give the user an easy way to get the xml data. So maybe you can get the information about the license informations and if we can ship (more likely provide a download routine for the data) inside an app. or if there are licensing issues with that. if you not already know, you can find the latest source of fahrplan here: https://garage.maemo.org/plugins/scm...?root=fahrplan, it contains parser_*.cpp files which contains my parsing code. (xpath querys on xml and html). |
Re: Railway Time table
I will get the code.
I am also thinking that loading xml files on the device is not really needed, since app allows to save the searched results one can store favourite route data and recall as needed, so i think will add online search instead of downloading the complete set. there is a mobile version which can be easily used as backend i suppose |
Re: Railway Time table
For any UKians (or those visiting who are interested), can I point out that the browser acts as railway timtable app straight from the location bar if you follow the instructions in the wikipage linked to in my sig...
|
Re: Railway Time table
@vivmak:
i started looking for a way to parse the 131500 website. it should be quite easy with the exception, the website seams to need cookies to work. but its possible that we still don't need them. i just released 0.0.18 of fahrplan with some bugfixes, but i have time to start implementing a new backend. |
Re: Railway Time table
just to inform you guys, i worked on the 131500 backend last weekend and its in svn now. i try to release a new version of fahrplan the upcoming weekend with this changes.
|
Re: Railway Time table
Quote:
|
Re: Railway Time table
thanks for the info, i noticed also some minor glitches. i will fix the bugs in the next couple of days.
|
Re: Railway Time table
Quote:
|
| All times are GMT. The time now is 22:15. |
vBulletin® Version 3.8.8