Custom Connector

iRail Belgium Connector

Belgium

The iRail Belgium Connector provides access to Belgian railway data — stations, liveboards, connections, vehicle information, train compositions, disturbances, and logs. It acts as a proxy supporting train schedules, real-time updates, and feedback submission, with JSON and XML responses.

Type
Virtual machines, Single VM, BYOL
Runs on
Google Compute Engine
Last update
24 Oct 2024
Category
Integration
Overview

Integration Overview

This document provides a detailed guide for each integration point, its purpose, configuration, and workflow support using the iRail Belgium Connector.

  • getStations. Retrieve a list of stations.
  • getLiveboard. Retrieve liveboard information for a station.
  • getConnections. Retrieve routes between two stations.
  • getVehicle. Retrieve vehicle (train) information.
  • getComposition. Retrieve train composition details.
  • getDisturbances. Retrieve current rail network disturbances.
  • postFeedback. Submit occupancy feedback for a train.
  • getLogs. Retrieve recent log entries.
Documentation

Detailed Integration Documentation

Get Stations Retrieval

ActiongetStations
PurposeRetrieves a list of Belgian railway stations with IDs, names, and locations. The primary entry point for station data.
ConfigurationConfigure the base URL via CONNECTOR_ENV_IRAILBELGIUM_BASE_URL.
ParametersOptional:
format (xml, json, jsonp; default xml); lang (nl, fr, en, de; default en).
OutputSuccessful: JSON/XML with version, timestamp, and a station array (id, locationX, locationY, standardname, name). Failure: 500 Internal server error.
Workflow exampleExecute getStations with format=json, then populate a station selection list.

Get Liveboard Retrieval

ActiongetLiveboard
PurposeRetrieves liveboard data for a station — departures or arrivals with delays, platforms, and occupancy.
ConfigurationConfigure the base URL via CONNECTOR_ENV_IRAILBELGIUM_BASE_URL.
ParametersRequired:
station (e.g. Gent-Sint-Pieters). Optional:
id, arrdep (departure/arrival, default departure), date (ddmmyy), time (hhmm), alerts (boolean), format (xml, json, jsonp; default xml); lang (nl, fr, en, de; default en).
OutputSuccessful: JSON/XML with version, timestamp, station, stationinfo, and departures/arrivals (id, delay, station, time). Failure: 500.
Workflow exampleExecute getLiveboard with station=Gent-Sint-Pieters and arrdep=departure to display real-time departures.

Get Connections Retrieval

ActiongetConnections
PurposeRetrieves route connections between two stations — durations, vias, and real-time delays.
ConfigurationConfigure the base URL via CONNECTOR_ENV_IRAILBELGIUM_BASE_URL.
ParametersRequired:
from, to. Optional:
timesel (departure/arrival), typeOfTransport (automatic, trains, nointernationaltrains, all), date (ddmmyy), time (hhmm), alerts, results (default 6), format (xml, json, jsonp; default xml); lang (nl, fr, en, de; default en).
OutputSuccessful: JSON/XML with version, timestamp, and a connection array (id, departure, arrival, duration, vias, alerts). Failure: 400 Bad request.
Workflow exampleExecute getConnections with from=Gent-Sint-Pieters and to=Mechelen for route planning.

Get Vehicle Retrieval

ActiongetVehicle
PurposeRetrieves information about a specific train vehicle — stops, delays, and current location.
ConfigurationConfigure the base URL via CONNECTOR_ENV_IRAILBELGIUM_BASE_URL.
ParametersRequired:
id (e.g. BE.NMBS.IC1832). Optional:
date (ddmmyy), alerts, format (xml, json, jsonp; default xml); lang (nl, fr, en, de; default en).
OutputSuccessful: JSON/XML with version, timestamp, vehicle, vehicleinfo, and a stops array. Failure: 404 Not found.
Workflow exampleExecute getVehicle with id=BE.NMBS.IC1832 to track a train.

Get Composition Retrieval

ActiongetComposition
PurposeRetrieves the composition of a train — carriages and locomotives with properties like toilets and outlets.
ConfigurationConfigure the base URL via CONNECTOR_ENV_IRAILBELGIUM_BASE_URL.
ParametersRequired:
id (e.g. S51507). Optional:
data (’’ or all), format (xml, json, jsonp; default xml); lang (nl, fr, en, de; default en).
OutputSuccessful: JSON/XML with a segments array (origin, destination, units with materialType, hasToilets). Failure: 404 Not found.
Workflow exampleExecute getComposition with id=S51507 for accessibility or planning applications.

Get Disturbances Retrieval

ActiongetDisturbances
PurposeRetrieves current disturbances on the rail network — scheduled works and unscheduled issues.
ConfigurationConfigure the base URL via CONNECTOR_ENV_IRAILBELGIUM_BASE_URL.
ParametersOptional:
lineBreakCharacter, format (xml, json, jsonp; default xml); lang (nl, fr, en, de; default en).
OutputSuccessful: JSON/XML with version, timestamp, and a disturbance array (id, title, description, link, timestamp). Failure: 500.
Workflow exampleExecute getDisturbances with format=json, then integrate into notification systems.

Post Feedback

ActionpostFeedback
PurposeSubmits occupancy feedback for a train, contributing to average occupancy data (crowd-sourced).
ConfigurationConfigure the base URL via CONNECTOR_ENV_IRAILBELGIUM_BASE_URL.
ParametersRequired:
connection (departure connection URI), occupancy (occupancy URI). Optional:
None.
OutputSuccessful: confirmation with Location header (e.g. http://irail.be/vehicle/IC4516). Failure: 400 Bad request.
Workflow exampleExecute postFeedback with connection and occupancy details for user-feedback integration.

Get Logs Retrieval

ActiongetLogs
PurposeRetrieves the last 1000 log entries in JSON format — for API usage monitoring and debugging.
ConfigurationConfigure the base URL via CONNECTOR_ENV_IRAILBELGIUM_BASE_URL.
ParametersOptional:
None.
OutputSuccessful: JSON array of log entries. Failure: 500.
Workflow exampleExecute getLogs and review the logs for operational insights.

Example Workflow: Train Journey Planning

Retrieve stationsUse getStations to fetch stations and identify departure/arrival (e.g. Gent-Sint-Pieters, Mechelen).
Query connectionsExecute getConnections with from and to to fetch routes and note vehicle IDs.
Fetch vehicle/liveboardUse getVehicle and getLiveboard to power a journey planner.
Monitor & feedbackUse getDisturbances for network status and postFeedback for occupancy.
Support

For technical support, contact custom-connectors-support@isolutions.sa.

free consultation

Schedule a Free Consultation With Our Specialists

Book a free demo
request

Begin Your Adventure With Experienced Professionals

Send request
help desk

Do You Have Questions or Want More Information? Call Now.

Contact support