GithubHelp home page GithubHelp logo

juliuste / flix-rest Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 1.0 21 KB

REST endpoint for the FlixBus (Meinfernbus) / FlixTrain API.

Home Page: https://1.flixbus.transport.rest

License: ISC License

Shell 5.53% JavaScript 94.47%
deployment api public-transport bus coach

flix-rest's Introduction

meinfernbus-rest

A public HTTP REST API, exposing a clean interface to query the Meinfernbus/FlixBus API. Complies with the friendly public transport format. Inofficial, using endpoints by Flixbus/MFB. Ask them for permission before using this endpoint in production.

The public endpoint is available at https://1.flixbus.transport.rest.

dependency status dev dependency status license chat on gitter

GET /regions

Output from search-meinfernbus-locations (regions only).

  • query: Required. Search query
curl 'https://1.flixbus.transport.rest/regions/?query=Frankfurt'

GET /regions/all

List of all operated regions, output from require('meinfernbus').regions.

curl 'https://1.flixbus.transport.rest/regions/all'

GET /stations

Output from search-meinfernbus-locations (stations only).

  • query: Required. Search query
curl 'https://1.flixbus.transport.rest/stations/?query=Frankfurt'

GET /stations/all

List of all operated stations, output from require('meinfernbus').stations.

curl 'https://1.flixbus.transport.rest/stations/all'

GET /journeys

Output from require('meinfernbus').journeys

  • origin: Region id or origin.id: Region/station id and origin.type: Region/station - Required.
  • destination: Region id or destination.id: Region/station id and destination.type: Region/station - Required.
  • date: When? UNIX timestamp or JS-parsable date string. Default: now.
  • adults: Number of adults. Default: 1
  • children: Number of children. Default: 0
  • bikes: Number of bikes. Default: 0
curl 'https://1.flixbus.transport.rest/journeys/?origin=88&destination=1394&date=2018-04-13T10:30:00'

Similar Projects

Contributing

If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.

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.