Skip to content

Uses the Open data platform mobility Swiss API to expose a custom API using NestJS

Notifications You must be signed in to change notification settings

tomihbk/Swiss-Station-Timetable-API

Repository files navigation

Swtizerland Open Transport Data - Departure and Arrival API

Installation

Setup is very easy. First, clone the repository

git clone https://github.com/tomihbk/cff-departure-arrival-dashboard-api.git
cd cff-departure-arrival-dashboard-api

Copy file .env.dev to .env

OPEN_TRANSPORT_DATA_API_URL = https://api.opentransportdata.swiss/ojp2020
OPEN_TRANSPORT_DATA_API_TOKEN = TOKEN_GENERATED_FROM(https://opentransportdata.swiss/en/dev-dashboard/)
API_VERSION = API_VERSION(v1)
APP_PORT = APP_PORT_FOR_DEVELOPMENT

Your project is now ready. Start the project with docker-compose :

docker-compose up -d

Or on your local node environment :

npm install; npm run dev

Your API path is http://localhost:APP_PORT/API_VERSION/transport.

About

Uses the Open data platform mobility Swiss API to expose a custom API using NestJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published