iRail Misc Software www

Route Planner station auto-complete

I’ve built-in a new function; the station name “auto-complete“. 

When starting to type in a station name (starting at the 3rd char), it will suggest station names, and you can just tab them to select. 

I made a txt file with all station names I found on the NMBS website. I hope it’s up to date, and if there are any stations missing, please report. 🙂

The station names depend on their location within Belgium. Flemish stations are Dutch only, Walloon stations French only. Everything inbetween (e.g. Brussels) is in both languages.


Errors iRail Misc Software www

Route Planner bug fix

I just fixed a bug where he wouldn’t query the NMBS website if you hadn’t picked your language yet. Default language has been set to English.

Thanks to Helene.

iRail Misc Software www

Route Planner updates

These are the things I’ve worked on:

  • changed color to dark blue
  • added a seperate settings page (you can only change the results page language at the moment (the content downloaded from the NMBS website))
  • language settings is saved in a cookie
  • station info is saved in a cookie too, instead of a session
  • changed date and time to use a dropdown menu and the menu should be updated to “now”
  • and many more small changes

Website is accessible through this link:

Thanks to Anner for the great feedback.

iRail Misc Software www

NMBS/SNCB for iPhone

As there is no iPhone compatible website or application, I created my own NMBS “route planner” for the iPhone. This is no app though, this is just an iPhone website.

Basicly, this is what you can do:

  • fill in departure station
  • fill in arrival station
  • fill in time and date (of departure)

At this stage of the project, only the basic train details are shown (departure time, arrival time) and up to 3 or 4 different possibilities (depending what the NMBS website replies).

There is no option (and I’m unsure whether there will be in the future) to see details about a selected trip (like stops and station changes).

The site is made in English, but you can choose in what language you want the results, the only problem I’ve seen so far is that for DE and EN all train station names are in French (Antwerp becomes Anvers), but this “bug” lies out of my hands, as all train information is received from the NMBS websites, including station names.

Basicly this is what it does: it opens a HTTP socket to the NMBS site, filling in your details (like date and stations), and gets the reply back (if the NMBS site replies in time, I’ve seen a few time outs).

All unrequired information is cut off, and you remain with just the trip details. Which should just fit your iPhone in landscape mode.

When filling in your station details, please use existing stations names (language shouldn’t matter), including Central, North, South, etc if needed. Requesting the station “Brussels” won’t work and will just display an empty page for now.

Things I’ll be working on:

  • layout and design of the trip detail page
  • I’ve seen that my Sessions do some weird stuff from time to time (refresh the main page 2x and all sessions are destroyed); but that’s something I’ll have to look in
  • Well, I guess most users want more information, so I’ll have to try to get trip details
  • and better data handling. Still too much unrequired information.
  • Error handling, if e.g. the station doesn’t exist or the date/time is incorrect

Please leave your feedback/bug reports in a comment or per e-mail.

Also, if visiting the website with Firefox, IE or even Chrome… Yes, it’s not compatible to any of them. My website looks dodgy in those browsers; I’ve only focussed on the iPhone browser.


LHC webcams online

Here‘s the link.