A Google Cloud Plaform (GCP) function to provide Transport for Greater Manchester (TFGM) Metrolink tram information.
This function is not intended for end users. Rather it provides the backend API, so that clients can call it without having to register their own TFGM API key.
To deploy this function into GCP a TFGM API key is needed.
This project uses Function Frameworks to run the function locally.
# start local server
TFGM_API_KEY='some api key' go run cmd/local-server/main.go
# call the API
curl http://localhost:8080/tramsfunc