Giter VIP home page Giter VIP logo

juliuste / db-interchanges-rest Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 14 KB

CURRENTLY UNMAINTAINED (MIGHT BE RE-ACTIVATED IN THE FUTURE) - REST API for the db-interchanges module, which can be used to retrieve accessibility information for interchanges between specific platforms at Deutsche Bahn (DB) stations.

Home Page: https://1.db-interchanges.juliustens.eu

License: ISC License

JavaScript 100.00%
deployment api public-transport railway

db-interchanges-rest's Introduction

โš ๏ธ CURRENTLY UNMAINTAINED (MIGHT BE RE-ACTIVATED IN THE FUTURE)

db-interchanges-rest

A public HTTP REST API, exposing the db-interchanges JavaScript module, which can be used to retrieve accessibility information for interchanges between specific platforms at Deutsche Bahn (DB) stations. See the module's readme page for coverage and usage information.

The public endpoint is available at https://1.db-interchanges.juliustens.eu.

license

GET /

Output from db-interchanges, see the module's readme page for detailed explanations of all responses.

  • fromStationId: Required. DB station id (e.g. 8012478 for Leipzig Messe)
  • fromPlatform: Required. Platform name (e.g. 2)
  • toStationId: Required. DB station id (e.g. 8012478 for Leipzig Messe)
  • toPlatform: Required. Platform name (e.g. 3)
  • fastaToken: Optional, but usage encouraged. Token for the DB FaSta elevator api. The APi uses a default token, but this is likely to be rate-limited if used by a lot of people. You can get your own one here.
curl 'https://1.db-interchanges.juliustens.eu/?fromStationId=8012478&fromPlatform=2&toStationId=8012478&toPlatform=3'

Example response

{
	barrierFree: true,
	elevators: [
		'10068718',
		'10200698'
	]
}

See also

  • db-interchanges - Library exposed by this API.
  • db-platforms - Deutsche Bahn platform information, enriched with OSM data.
  • db-elevators - Deutsche Bahn elevator information, enriched with OSM data.

Contributing

If you found a bug or want to propose a feature, feel free to visit the issues page.

db-interchanges-rest's People

Contributors

juliuste 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.