Rest API to perform searches against the Network Rail CORPUS database
1.5K
This image provides a Rest API that allows for searching against the Network Rail CORPUS database.
PORT the port to listen to, defaults to 4000 MAXAGE the max age of the data before refreshing it CREDENTIALS the credentials for accessing the source data
docker run -d -e CREDENTIALS='username:password' -p 4000:4000 -v volume:/opt/data area51/corpus
This will retrieve the current data and store it in a volume (or directory) and then start a webserver on port 4000.
Retrieve by the 3Alpha (or CRS) code: For example MDE
curl http://localhost:4000/3alpha/MDE [{"stanox":89403,"nlc":511500,"uic":51150,"talpha":"MDE","tiploc":"MSTONEE","nlcdesc":"","nlcdesc16":""}]
You can also perform lookups by stanox, nlc, ulc or tiploc using the same url format.
docker pull area51/corpus:latest