This is the source-code repository used for developing and deploying OJP Demo web-application.
- https://opentdatach.github.io/ojp-demo-app/ - production URL
- CHANGELOG - deployment changes
- Architecture
- App Features
- Query Params Examples
Requirements:
Installation steps:
- clone this repo
- install dependencies via npm
npm install
-
copy src/app/config/app-config.ts to
src/app/config/app-config.local.ts -
get an OJP 2.0 (or 1.0) key from https://api-manager.opentransportdata.swiss/
-
replace the key placeholder
# src/app/config/app-config.local.ts
...
// OJP 2.0
'V2-PROD': {
url: 'https://api.opentransportdata.swiss/ojp20',
authToken: 'PLACEHOLDER_REPLACE__PROD',
},
...
-
get a Mapbox token - https://docs.mapbox.com/help/dive-deeper/access-tokens/
- or use this one
-
serve local development server
ng serve
- navigate to http://localhost:4200 in the browser
The project is released under a MIT license.
Copyright (c) 2021 - 2026 Open Data Platform Mobility Switzerland - opentransportdata.swiss.
