0.0.5 • Published 8 years ago

bos-bikes v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

bos-bikes Build Status

This module is a command line tool that gets you the real-time info on Hubway stations. Particularly the number of bikes available for rent and the number of available docks.

Installation

  > npm install -g bos-bikes

Don't forget the "-g" to install it globally. (then you can run the bikes command anywhere)

npm.io

Usage

On your terminal:

  > bikes `station-id`

Basically the bikes command and whatever station you want to check.

At first, you will obviously not know the id of a particular station. You can get that with the command bikes. It is a deliberate api design decision. The reality is that you most frequently use only 3 to 4 stations anyways. By your fourth use, you will know the id by heart (one or two digits). Then you can pretty much make the query in less a second.

Station's names and ids

idname
id: 3station: Colleges of the Fenway
id: 4station: Tremont St. at Berkeley St.
id: 5station: Northeastern U / North Parking Lot
id: 6station: Cambridge St. at Joy St.
id: 7station: Fan Pier
id: 8station: Union Square - Brighton Ave. at Cambridge St.
id: 9station: Agganis Arena - 925 Comm Ave.
id: 10station: B.U. Central - 725 Comm. Ave.
id: 11station: Longwood Ave / Binney St
id: 12station: Ruggles Station / Columbus Ave.
id: 13station: Boston Medical Center - East Concord at Harrison Ave
id: 14station: HMS / HSPH - Ave. Louis Pasteur at Longwood Ave.
id: 15station: Harvard Real Estate - Brighton Mills - 370 Western Ave
id: 16station: Back Bay / South End Station
id: 17station: Harvard University Housing - 111 Western Ave. at Soldiers Field Park
id: 19station: Buswell St. at Park Dr.
id: 20station: Aquarium Station - 200 Atlantic Ave.
id: 21station: Prudential Center / Belvidere
id: 22station: South Station - 700 Atlantic Ave.
id: 23station: Mayor Martin J Walsh - 28 State St
id: 24station: Seaport Square - Seaport Blvd. at Boston Wharf
id: 25station: Tremont St / W Newton St
id: 26station: Washington St. at Waltham St.
id: 27station: Roxbury Crossing Station
id: 29station: Innovation Lab - 125 Western Ave. at Batten Way
id: 30station: Brigham Cir / Huntington Ave
id: 31station: Seaport Hotel
id: 32station: Landmark Centre
id: 33station: Kenmore Sq / Comm Ave
id: 35station: Franklin St. / Arch St.
id: 36station: Boston Public Library - 700 Boylston St.
id: 37station: New Balance - 20 Guest St.
id: 38station: TD Garden - Causeway at Portal Park #2
id: 39station: Washington St. at Rutland St.
id: 40station: Lewis Wharf - Atlantic Ave.
id: 41station: Packard's Corner - Comm. Ave. at Brighton Ave.
id: 42station: Boylston St. at Arlington St.
id: 43station: Rowes Wharf - Atlantic Ave
id: 44station: Faneuil Hall - Union St. at North St.
id: 45station: Yawkey Way at Boylston St.
id: 46station: Christian Science Plaza
id: 47station: Cross St. at Hanover St.
id: 48station: Post Office Square
id: 49station: Stuart St. at Charles St.
id: 50station: Boylston St / Berkeley St
id: 51station: Washington St. at Lenox St.
id: 52station: Newbury St / Hereford St
id: 53station: Beacon St / Mass Ave
id: 54station: Tremont St / West St
id: 55station: Boylston / Mass Ave
id: 56station: Dudley Square
id: 57station: Columbus Ave. at Mass. Ave.
id: 58station: The Esplanade - Beacon St. at Arlington St.
id: 59station: Chinatown Gate Plaza - Surface Rd. at Beach St.
id: 60station: Charles Circle - Charles St. at Cambridge St.
id: 61station: Boylston at Fairfield
id: 63station: Dorchester Ave. at Gillette Park
id: 64station: Congress / Sleeper
id: 65station: Boston Convention & Exhibition Center
id: 66station: Allston Green District - Commonwealth Ave & Griggs St
id: 67station: MIT at Mass Ave / Amherst St
id: 68station: Central Square at Mass Ave / Essex St
id: 69station: Coolidge Corner - Beacon St @ Centre St
id: 70station: Harvard Kennedy School at Bennett St / Eliot St
id: 71station: Conway Park - Somerville Avenue
id: 72station: One Broadway / Kendall Sq at Main St / 3rd St
id: 73station: Harvard Square at Brattle St / Eliot St
id: 74station: Harvard Square at Mass Ave/ Dunster
id: 75station: Lafayette Square at Mass Ave / Main St / Columbia St
id: 76station: Central Sq Post Office / Cambridge City Hall at Mass Ave / Pleasant St
id: 77station: Somerville City Hall
id: 78station: Union Square - Somerville
id: 79station: Beacon St at Washington / Kirkland
id: 80station: MIT Stata Center at Vassar St / Main St
id: 81station: Boylston St / Washington St
id: 82station: Washington Square at Washington St. / Beacon St.
id: 84station: CambridgeSide Galleria - CambridgeSide PL at Land Blvd
id: 85station: Spaulding Rehabilitation Hospital - Charlestown Navy Yard
id: 87station: Harvard University Housing - 115 Putnam Ave at Peabody Terrace
id: 88station: Inman Square at Vellucci Plaza / Hampshire St
id: 89station: Harvard Law School at Mass Ave / Jarvis St
id: 90station: Lechmere Station at Cambridge St / First St
id: 91station: One Kendall Square at Hampshire St / Portland St
id: 92station: UMass Boston Integrated Sciences Complex
id: 93station: JFK / UMASS at MBTA Station
id: 94station: Charlestown - Main St at Austin St
id: 95station: Cambridge St - at Columbia St / Webster Ave
id: 96station: Cambridge Main Library at Broadway / Trowbridge St
id: 97station: Harvard University River Houses at DeWolfe St / Cowperthwaite St
id: 98station: Charlestown - Warren St at Chelsea St
id: 99station: Wilson Square
id: 100station: Davis Square
id: 102station: Powder House Circle - Nathan Tufts Park
id: 103station: JFK Crossing at Harvard St. / Thorndike St.
id: 104station: Harvard University Radcliffe Quadrangle at Shepard St / Garden St
id: 105station: Lower Cambridgeport at Magazine St/Riverside Rd
id: 106station: Mt Pleasant Ave / Dudley Town Common
id: 107station: Ames St at Main St
id: 108station: Harvard University / SEAS Cruft-Pierce Halls at 29 Oxford St
id: 109station: TD Garden - Causeway at Portal Park #1
id: 110station: Harvard University Gund Hall at Quincy St / Kirkland S
id: 111station: Packard Ave / Powderhouse Blvd
id: 113station: Andrew Station - Dorchester Ave at Humboldt Pl
id: 114station: Teele Square at 239 Holland St
id: 115station: Porter Square Station
id: 116station: 359 Broadway - Broadway at Fayette Street
id: 117station: Binney St / Sixth St
id: 118station: Linear Park - Mass. Ave. at Cameron Ave.
id: 119station: South Boston Library - 646 East Broadway
id: 120station: Charles St at Beacon St
id: 121station: West Broadway at Dorchester St
id: 122station: BIDMC - Brookline at Burlington St
id: 123station: JP Center - Centre Street at Myrtle Street
id: 124station: Curtis Hall at South Street
id: 125station: Hyde Square at Barbara St
id: 126station: Egleston Square at Columbus Ave
id: 128station: E. Cottage St at Columbia Rd
id: 129station: Hayes Square at Vine St.
id: 130station: Upham's Corner - Ramsey St at Dudley St
id: 131station: Jackson Square T at Centre St
id: 133station: Green St T
id: 134station: New Balance Store - Boylston at Dartmouth
id: 135station: ID Building East
id: 136station: ID Building West
id: 137station: Magoun Square at Trum Field
id: 138station: Mass Ave at Newmarket Square
id: 139station: Dana Park
id: 140station: Danehy Park
id: 141station: Kendall Street
id: 142station: Alewife Station at Russell Field
id: 143station: EF - North Point Park
id: 145station: Rindge Avenue - O'Neill Library
id: 146station: Day Boulevard
id: 149station: Harvard University Transportation Services - 175 North Harvard St
id: 150station: State Street at Channel Center
id: 151station: John F Fitzgerald - Surface Road at India Street
id: 152station: Ink Block
id: 159station: Heath St at South Huntington
id: 160station: Wentworth Institute of Technology
id: 161station: West Broadway at D Street
id: 162station: Franklin Park - Seaver Street at Humbolt Ave
id: 163station: Lawn on D
id: 167station: Ryan Playground - Dorchester Avenue Station
id: 169station: Edwards Playground - Main Street & Eden Street
id: 170station: Franklin Park Zoo
id: 171station: Bunker Hill Community College
id: 173station: Savin Hill MBTA Station
id: 174station: Washington St at Brock St
id: 175station: Brighton Center
id: 176station: Lesley University
id: 177station: University Park
id: 178station: MIT Pacific St at Purrington St
id: 179station: MIT Vassar St
id: 180station: Mt Auburn
id: 186station: Congress St and Northern Ave
id: 189station: Kendall T
id: 190station: Nashua Street at Red Auerbach Way
id: 192station: Purchase St at Pearl St
id: 193station: Brookline Village - Station Street @ MBTA
id: 194station: Broadway St at Mt Pleasant St

Raison d'être

Going to the Hubway's map (resizing, load time) multiple times a day will waste some of your precious time. If you are using Boston's bike sharing system on a regular basis, download this global package and get the number of available bikes and docks on a particular station instantly, right in your command line.

Api

No api to mess with. Enter the command bikes and the station-id and get an instant update (number of bikes and docks available). Enter bikes only to get the updated list of stations ids and name.

few lines of code.

License

MIT © Mohamed Hayibor

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago