node-bikeshare
v0.0.1
Published
Npm package for interacting with the data for the Bay Area Bike Share program
Downloads
4
Readme
Node-Bikeshare
Node-Bikeshare is an npm package used to interact with the data from the Bay Area Bike Share program
Node-Bikeshare is inspired by the Bikeshare gem by Zack Shapiro
Usage
var client = new Bikeshare();
client.on("fetch", function(){
console.log("Stations count: " + client.stations().length);
console.log("San Francisco stations count: " + client.stations("San Francisco").length );
});
client.on("error", function(err, statusCode){
console.log(error);
});
client.fetch();
Available methods:
- station
- stations
- lastStation
- emptyStations
- isEmptyStation
- fullStations
- isFullStation
- percentAvailableBikes
- offlineStations
ZOMG Fork! Thank you!
You're welcome to fork this project and send pull requests. Just remember to include tests.
Copyright (c) 2009-2013 Gabriel Cebrian, released under the MIT license