Git Product home page Git Product logo

mobiliteit's Introduction

mobiliteit

Gathering bus information from a specific station in Luxembourg is hard This tool helps you to just get back the json that mobiliteit.lu should give you back

##API

##Usage

  • Using GET clean/STATIONID/:amount is exporting the JSON retrieved from mobiliteit.lu in a formatted way.
  • stationName is returning the name of the station you requested information for
  • journeys is going to return the next busses to depart at this station

every journey is going to include the following information:

  • timestamp the unix timestamp of the departure
  • line the line number of the bus
  • destination the destination of the bus
  • delay the delay that this departure has according to the schedule

Example

https://mobiliteit.herokuapp.com/200405036
https://mobiliteit.herokuapp.com/200405036/5
https://mobiliteit.herokuapp.com/clean/200405036
https://mobiliteit.herokuapp.com/clean/200405036/5

##Installation on your own heroku instance

  1. Clone this repository using git clone [email protected]:Kaweechelchen/mobiliteit.git

Nginx

If (like me) you don't like Apache, just edit your nginx config to something like this:

location /api/ { try_files $uri /var/www/web/index.php$is_args$args; }

This would be for testing and you still need to setup the "server" part.

License

Copyright (c) 2014 Thierry Degeling Licensed under the MIT license.

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.