Storstockholms Lokaltrafiks (SL) APIs:
Run npm run start
for an example API server:
- http://localhost:3333/api/locations?q=T-Centralen
- http://localhost:3333/api/departures?siteId=9001
- http://localhost:3333/api/service-alerts?siteId=9001
Expected environment variables:
STOCKHOLM_LOCATIONS_API_KEY
STOCKHOLM_DEPARTURES_API_KEY
STOCKHOLM_SERVICE_ALERTS_API_KEY
Read how to generate Trafiklab API keys here.
A guide on publishing an NX library to NPM is available here.