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 departureline
the line number of the busdestination
the destination of the busdelay
the delay that this departure has according to the schedule
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
- Clone this repository using
git clone [email protected]:Kaweechelchen/mobiliteit.git
- Get an Heroku account
- install the heroku toolbelt
- create a new heoku app using
heroku create
- push the code
git push heroku master
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.
Copyright (c) 2014 Thierry Degeling Licensed under the MIT license.