Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Station list CSV down #2

Closed
davwheat opened this issue Jan 11, 2021 · 3 comments
Closed

Station list CSV down #2

davwheat opened this issue Jan 11, 2021 · 3 comments

Comments

@davwheat
Copy link
Contributor

"StationCodesCsvUrl": "https://www.nationalrail.co.uk/static/documents/content/station_codes.csv"

This URL seems to be dead. Is there a way to disable the station CSV list update, or a place to change the URL to?

@davwheat
Copy link
Contributor Author

@jpsingleton
Copy link
Owner

Thanks!

The preferred method of getting the CRS codes is from the staff API. If you set a staff API key then it will be used and the station CSV list update will be disabled (if the staff API call succeeds). The logic is in the CrsService if you want to tweak it.

The file appears to have moved to https://www.nationalrail.co.uk/station_codes%20(07-12-2020).csv but the format has also changed (multiple columns). Good idea to have your own copy that you control, ideally populated from the Darwin staff API. The NRE CSV has previously been incomplete and contained CRS codes that didn't even work with Darwin!

@jpsingleton
Copy link
Owner

jpsingleton commented Feb 13, 2021

The gist appears not to have a header row and has a duplicate of OKE.

I've produced a complete CRS codes file (https://raw.githubusercontent.com/jpsingleton/Huxley2/master/station_codes.csv) and set this as the default URL in the Huxley2 app settings.

Instructions on how to make it with one line of bash are in the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants