• Our new ticketing site is now live! Using either this or the original site (both powered by TrainSplit) helps support the running of the forum with every ticket purchase! Find out more and ask any questions/give us feedback in this thread!

OpenLDBWS data feed

Status
Not open for further replies.

Bytec

New Member
Joined
13 Feb 2025
Messages
2
Location
Warwick
I'm not sure if this is the forum to ask this question but here goes.

I am working on a project creating a station departures board which so far is going well. My question is if I configure my code to look up a particular station should the response include any train that stops there along the trains that start there. My current code only return trains that start at the selected station/

Any help or pointers would be helpful.

Regards
 
Sponsor Post - registered members do not see these adverts; click here to register, or click here to log in
R

RailUK Forums

Adam Williams

Established Member
Joined
2 Jan 2018
Messages
3,573
Location
Warks
I'd have expected GetDepartureBoard to give you back all trains departing from the provided CRS code within the time window. This should include both trains that commence from the station, as well as those that started somewhere else and are calling (but not those that are just passing) at your queried station.

Is that not the behaviour you're experiencing?
 

Bytec

New Member
Joined
13 Feb 2025
Messages
2
Location
Warwick
Many thanks for your reply. my project is concentrating on Stansted Airport station (SSD). The only train operator that are returned are "CrossCountry and Greater Anglia". I was expecting to see LNER traffic but none is returned.

This is the code that pulls the data:
$OpenLDBWS = new OpenLDBWS("----Access Token----");
$response = $OpenLDBWS->GetDepBoardWithDetails(100,"SSD",0,0,60,120);

Do you think this looks correct?

Regards from one Warwickshire lad to another.
 

Adam Williams

Established Member
Joined
2 Jan 2018
Messages
3,573
Location
Warks
The code looks completely fine - but I don't think LNER go that far East over there, do they? :lol:

Regards from one Warwickshire lad to another.
Didn't spot you were in Warwick! Small world, I'm not far from Leam
 
Status
Not open for further replies.

Top