Skip to content

Ingress service to fetch data from Trafikverkets api.trafikinfo.trafikverket.se

License

Notifications You must be signed in to change notification settings

diwise/ingress-trafikverket

Repository files navigation

Introduction

This service is responsible for periodically retrieving data from the API library provided by Trafikverket..

Getting Started

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.

Building and tagging with Docker

docker build -f deployments/Dockerfile -t diwise/ingress-trafikverket:latest .

Build for local testing with Docker Compose

docker-compose -f ./deployments/docker-compose.yml build

Running locally with Docker Compose

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

About

Ingress service to fetch data from Trafikverkets api.trafikinfo.trafikverket.se

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages