Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

dbsystel/1BahnQL

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

1BahnQL

‼️ 1BahnQL is no longer maintained and will be archived.

Single unified API for all DBOpenData APIs implemented with GraphQL. We implemented the following APIs: StaDa, FaSta, TimeTables, Flinkster, CallABike, ParkplätzeAPI, ReiseCenter

GraphiQL Playground

1BahnQL GraphiQL

Usage

Install

The installation requires node.js as the execution environment as well as npm as the package manager. Then run npm install as a command on your commandline interface.

Run

You need an active authentication token to run your personal installation. You can get one on developer.deutschebahn.com. After creating you account you also have to subscribe to desired services by your own.

Use your "Zugangstoken" as the DBDeveloperAuthorization Token and run the server:

DBDeveloperAuthorization=<Your DBOpenData Authentication Token> node index.js

Optional parameters:

  • DBBaseURL

Heroku Deploy

Deploy

Data Sources

Following data sources are currently technically implemented. You need to subscribe to each service at developer.deutschebahn.com to use them with 1BahnQL.

API based sources:

static sources:

Root Queries

tbi

  • Station
  • Zug
  • Station
  • Bahnsteig
  • Flinkster
  • Call a Bike
  • Parkplätze
  • Zug
  • Fahrstühle / Rolltreppen

ID Access

  • EvaId (Station)
  • DS100 (BetrSt)
  • Zug
  • Flinkster
  • Call a Bike
  • Fahrstühle / Rolltreppen
  • Parkplätze
  • Bahnsteig

About

Single unified API for all DBOpenData APIs implemented with GraphQL.

Resources

License

Stars

Watchers

Forks

Packages

No packages published