Another issue that I have found relates to the underground lines, in that not all originating stops are being returned.
A call to /Line/Mode/{modes}/Route returns only Epping & Hainault inbound and Ealing Broadway & West Ruislip outbound as Central line originating stations.
However there are a large number of trips that originate at other stops such as Loughton, Woodford, Grange Hill, Newbury Park, Leytonstone, White City, North Acton, Northolt & Ruislip Gardens.
In particular, this means that the outbound half of the Woodford-Hainault shuttle is completely missing
Similarly, the Victoria line only has Walthamstow Central as inbound and Brixton as outbound, ignoring trains that originate at Seven Sisters (a lot) or Victoria (a few)
Now the data is actually there inside your system - for example, a call to /Line/central/Timetable/940GZZLUWOF?direction=outbound will correctly show routes from Woodford to Loughton, Epping, Grange Hill and Hainault
As far as I can see, there is currently no way of accessing this data, short of querying every stop in each direction on every line and filtering out the duplicates. This would massively increase the number of requests and the amount of data to be transferred.
Two possible solutions suggest themselves:
Option 1 is to add the missing originating stops to /Line/Mode/{modes}/Route and to /Line/Route. It would be nice in that case to have an additional flag on /Line/{lineId}/Timetable/{originatorId} to request originating trips only to cut out the duplication of data. Hint: this could be doubled up with documenting the required direction parameter.
Option 2 is to create a new call /Line/{lineId}/Timetable?direction=xxx which would return all timetable info for the line and direction, regardless of originator
I suspect incidentally that this problem applies to all modes, not just underground. I’ll have a look at river-bus next, as the most likely to be suffering from the same problem (and, of course, national-rail/elizabeth-line/overground whenever you get round to fixing the bug that stops these working at all)
[Edit] Same problem with river-bus:
RB1 has Barking Riverside & Battersea Power Station only, RB2 North Greenwich & Putney, RB4 Canary Wharf & Nelson Dock (correctly), RB6 North Greenwich & Putney
[Edit] And trams:
Missing those that start from the depot (i.e.Therapia Lane & Beddington Lane) as well as those that start at Sandilands
[Edit] And DLR:
Can’t find a decent timetable or WTT, but I know from personal experience that there are trips that originate from Canning Town & Canary Wharf, neither of which are in the list of originators