GithubHelp home page GithubHelp logo

uuqv / 1bahnql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dbsystel/1bahnql

0.0 3.0 0.0 666 KB

Single unified API for all DBOpenData APIs implemented with GraphQL.

License: MIT License

JavaScript 100.00%

1bahnql's Introduction

1BahnQL

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

ParkAndRide

{ parkandride(start_latitude: 53.55, start_longitude: 9.99, end_latitude: 52.5, end_longitude: 13.4) { routing { parts { delay } from { name location { latitude longitude } hasLocalPublicTransport hasParking } to { name location { latitude longitude } hasLocalPublicTransport hasParking } } } }

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

Connection Search

tbi

Stringbased Search

  • Station
  • Zug

Geo Search

  • 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

1bahnql's People

Contributors

dennispost avatar lightsprint09 avatar uuqv avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.