Dublin Bus - RTPI Javascript Client
About This
This module gets realtime
and stop information from the
Dublin Bus REST API.
It's really simple to use just look at the examples.
Any bug reports / pull requests are welcome, just follow the contributing guide (At the end of this).
Usage Guide / Examples
You have to install the module before you can use it:
npm install --save dublinbusjs
Now this exposes two functions, getStopData() and getRealtimeData().
const dublinBus = require('dublinbusjs');
dublinBus.getStopData(3787).then(console.log).catch(console.error)
dublinBus.getRealtimeData(7602).then(console.log).catch(console.error)
Contributing
All bug reports and pull requests are welcome!
If you wish to add something, make a fix or make a change, just:
- Fork this repo
- Add a branch
- Make your changes
- Send a pull request!
Make sure to make your changes in the 'src' directory, and run gulp
when your finished so it will build!