Closed briggySmalls closed 6 years ago
This is probably the new Cambridge North station! The station list should be constructed from reference data that is updated regularly. This is probably using the KnowledgeBase XMLs API.
For example the file can be downloaded simply:
curl -H "Accept: */*" -H "Content Type: application/xml" -H "X-Auth-Token: <TOKEN>" https://datafeeds.nationalrail.co.uk/api/staticfeeds/4.0/stations > station-codes.xml
Where <TOKEN>
is a token obtained by authenticating at https://datafeeds.nationalrail.co.uk/authenticate as described on the wiki
Note: Can make use of the Last-Modified
header to check if the stations list has updated
Fixed for now in f77ef400718b32cd025f9aea56397a530973897a but issue created for automatically scheduling downloads to update resources list #24
When searching for journeys on the Finsbury Park - Cambridge service the initial response is returned and the following error is thrown during the handling:
Somehow a station code is used in the ResourceService that is not found in the csv.