Skip to content

CRS station codes

James Singleton edited this page May 2, 2015 · 2 revisions

You can use CRS (Computer Reservation System) station codes or station names when requesting data from the Huxley API. There is also an endpoint to retrieve all CRS codes or a subset based on a query.

To get all CRS codes use this URL (or one on any Huxley instance):

To query for CRS codes based on station name use a URL like this:

Which returns this:

[
  {
    "stationName": "Clapham High Street",
    "crsCode": "CLP"
  },
  {
    "stationName": "Clapham Junction",
    "crsCode": "CLJ"
  },
  {
    "stationName": "Clapham (North Yorkshire)",
    "crsCode": "CPY"
  }
]

Or a URL like this:

Which returns this:

[
  {
    "stationName": "Chapel-en-le-Frith",
    "crsCode": "CEF"
  },
  {
    "stationName": "Chester-le-Street",
    "crsCode": "CLS"
  },
  {
    "stationName": "Newton-le-Willows",
    "crsCode": "NLW"
  },
  {
    "stationName": "Poulton-le-Fylde",
    "crsCode": "PFY"
  },
  {
    "stationName": "Stanford-le-Hope",
    "crsCode": "SFO"
  },
  {
    "stationName": "Thorpe-le-Soken",
    "crsCode": "TLS"
  }
]

There is also the embedded CSV file which is searchable on GitHub:

Contains public sector information licensed under the Open Government Licence v3.0.

Clone this wiki locally