RailFlow is a RESTful JSON API wrapper that integrates with National Rail's XML-based data feeds and API. With it, you can easily access, manage, and monitor key rail data in real-time.
- Add the ability to automaticlaly download Darwin Timetable files based on updates via the Darwin datafeed.
- Implement functionality to update Darwin Timetable in real-time with live data feeds.
- Add the ability to monitor specific routes for delays and cancellations.
- Integrate with Twilio for sending SMS alerts about delays and cancellations.
- Integrate KnowledgeBase ActiveMQ topic
- Map Route Cancelation/Delay codes to their String format
- Add extra `TIPLOC` Mapping.
GET https://railflow.co.uk/search?origin=HDF&destination=MAN
- Description: Returns a list of possible trains between the specified
origin
anddestination
for the upcoming days.
Parameter | Type | Description |
---|---|---|
origin |
String | The starting station code (e.g., HDF for Huddersfield). |
destination |
String | The destination station code (e.g., MAN for Manchester). |
http GET https://railflow.co.uk/search?origin=HDF&destination=MAN
POST https://railflow.co.uk/register/{journeyId}
- Description: Registers a user for journey notifications for a specific journey.
Parameter | Type | Description |
---|---|---|
journeyId |
String | Unique ID of the journey to register for. |
Field | Type | Description |
---|---|---|
notificationMethod |
Enum | Notification method: SMS , EMAIL , WHATSAPP , RCS , FACEBOOK , etc. |
notificationAddress |
String | Contact address for notifications (e.g., +44733994349 , [email protected] ). |
startPeriod |
String | Start of the notification period in yyyy-MM-dd:HH:mm format. |
endPeriod |
String | End of the notification period in yyyy-MM-dd:HH:mm format. |
POST https://railflow.co.uk/register/12345
Content-Type: application/json
{
"notificationMethod": "SMS",
"notificationAddress": "+44733994349",
"startPeriod": "2024-11-11:01:00",
"endPeriod": "2024-12-12:02:00"
}