node-bikeshare

0.0.1 • Public • Published

status

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

Readme

Keywords

none

Package Sidebar

Install

npm i node-bikeshare

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • gabceb