iRail API / scraper
PHP XSLT Other
Latest commit b48ad88 Jul 22, 2016 @seppestas seppestas Added `nointernationaltrains` type of transport option
This partly fixes #199, allowing to get NMBS connections that do not
use international trains.

README.md

iRail

License AGPL-3.0 Join the chat at https://gitter.im/iRail/iRail

iRail supports digital creativity concerning mobility in Belgium. This is an attempt to make the railway time schedules in Belgium easily available for anyone.

Our main site consists of a very easy mobile website to look up time schedules using our own API.

Native applications using the iRail API and created or supported by the iRail team are named BeTrains and RailerApp.

All information can be found on our blog at hello.iRail.be.

Installation for development purposes

note: you'll also need to have nodejs, composer and PHP curl extension installed on your system

  • Step 1: clone this repo
  • Step 2: composer install
  • Step 3: make sure storage is writable: chmod 777 storage
  • Step 4: Run your test server: php -S localhost:8008 -t api
  • Step 5: Enjoy your own iRail API at http://localhost:8008/connections.php?from=Gent%20Sint%20Pieters&to=Antwerp

Update stations list

Stations are updated through the irail/stations composer package. Just perform a composer update in the root of the project

More links