This service is responsible for periodically retrieving data from the API library provided by Trafikverket..
This repository is deprecated and the code has moved to https://github.com/diwise/ingress-trafikverket
In order to be able to use this service an API authentication key is needed. To prevent denial of service between developers, it is recommended that each developer has a unique authentication key. It is however possible to register these keys under a common account at Trafikverket. Please refer to https://api.trafikinfo.trafikverket.se for details.
docker build -f deployments/Dockerfile -t iot-for-tillgenglighet/ingress-trafikverket:latest .
docker-compose -f ./deployments/docker-compose.yml build
TFV_API_AUTH_KEY=<insert your API key here> docker-compose -f ./deployments/docker-compose.yml up
The ingress service will exit fatally and restart a couple of times until the RabbitMQ container is properly initialized and ready to accept connections. This is to be expected.
To clean up the environment properly after testing it is advisable to run docker-compose down -v