Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 697 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 697 Bytes

iRail API (use case)

What it does :

The scripts parses the official SNCB API and proposes the 6 next trains going from Nivelles to either Ath or Yvoir (3 for each destination), as JSON.

For each train journey, it shows :

  • the destination
  • the departure time
  • the expected departure delay
  • the expected duration

How-to use :

Potential improvements :

  • by default, the API only proposes train routes, whereas the SNCB website also includes bus and metro into its routes.
  • plan for inevitable API connectivity failures.