Public | Automated Build

Last pushed: 2 years ago
Short Description
Rest API to perform searches against the Network Rail CORPUS database
Full Description

This image provides a Rest API that allows for searching against the Network Rail CORPUS database.

Environment variables

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

You can also perform lookups by stanox, nlc, ulc or tiploc using the same url format.

More info

Docker Pull Command
Source Repository