HUB
Sign inSign up
corpus logo

area51/corpus

By area51

•Updated over 10 years ago

Rest API to perform searches against the Network Rail CORPUS database

Image
0

1.5K

area51/corpus repository overview

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

Tag summary
Recent tags
Content type
Image
Digest
Size
4.5 MB
Last updated
over 10 years ago
docker pull area51/corpus:latest