Public | Automated Build

Last pushed: a year 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

Usage

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.

Endpoints

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.

More info

Docker Pull Command
Owner
area51
Source Repository

Comments (0)