Giter VIP home page Giter VIP logo

Comments (3)

jpsingleton avatar jpsingleton commented on June 2, 2024 1

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.

from huxley2.

davwheat avatar davwheat commented on June 2, 2024

Ok, I compiled a replacement CSV here: https://gist.github.com/davwheat/5c4522f048da53ada8adc9af5a8fb508

Use this URL as an app setting: https://gist.githubusercontent.com/davwheat/5c4522f048da53ada8adc9af5a8fb508/raw/af8852aacbfa20ed3dc32dd6a19af4d084c1a86f/station_codes.csv

from huxley2.

jpsingleton avatar jpsingleton commented on June 2, 2024

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!

from huxley2.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.