A web service API providing Zagster bike share data from Bend, OR.
Consume the data provided by this web service via the production URL, followed by the paths listed here in the "Web Service API Endpoints" table.
path | description | result |
---|---|---|
/rides/locations_and_times | Rental id, start lat/lon and start/end time of all rides. | {"rental_id":"xyz","start_lat":44.0,"start_lon":-121.3,"end_lat":44.0,"end_lon":-121.3,"start_time":"yyyymmddhhmm","end_time":"yyyymmddhhmm","membership":"annual"} |
/rides/count | Total number of rows in the rides table. | {"count":"8675309"} |
/rides/count/per_month | Number of rides per month, per year. | {"2016":[{"9":220},{"10":141},{"11":89},{"12":16}],"2017":[{"1":20},{"2":31},{"3":79},{"4":88},{"5":156},{"6":301},{"7":405},{"8":187},{"9":401},{"10":353},{"11":113},{"12":79}],"2018":[{"1":94},{"2":83},{"3":154},{"4":1216},{"5":2400},{"6":1756},{"7":2748},{"8":1912},{"9":3648},{"10":2404}]} |
/rides/count/per_year | Number of rides per per year. | {"2016":466,"2017":2213,"2018":16415} |
/rides/count/per_hour | Number of rides hour. | {"0":429,"1":231,"2":130,"3":85,"4":42,"5":1,"7":1,"8":17,"9":16,"10":795,"11":425,"12":921,"13":846,"14":1795,"15":1789,"16":2119,"17":1630,"18":1942,"19":1637,"20":1636,"21":1054,"22":843,"23":710} |
/rides/count/from/:start/to/:end | Total number of rides based on starting location and ending location. See stations.js for valid :start and :end values in the path. |
{"count":"8675309"} |
/rides/count/:station | Total number of rides based on starting location. See stations.js for valid :station values in the path. |
{"count":"8675309"} |
/rides/count/:station/per_month | Total number of rides per month, per year, based on starting location. See stations.js for valid :station values in the path. |
{"2016":[{"11":89},{"12":16}],"2017":[{"1":20},{"2":31},{"3":79} ...] ...} |
/rides/count/:station/per_day | Total number of rides per day, per month, per year, based on starting location. See stations.js for valid :station values in the path. Only dates that have rides. |
{2016: {1: {1: 300, 3: 900, 31: 700}, 2: {1: 300, 2: 900, ... 31: 700} }, 2002: {...}} |
/rides/count/:station/per_day_of_year | Total number of rides per day of each year, based on starting location. See stations.js for valid :station values in the path. Only days that have rides. |
{2016: {1: 300, 3: 900, 31: 700}, 2017: {1: 300, 2: 900, ... 312: 700} } |
/rides/count/:station/per_year | Total number of rides per year, based on starting location. See stations.js for valid :station values in the path. |
{"2016":466,"2017":2213,"2018":16415} |
/rides/count/:station/per_month/memberships | Total number of rides per membership type, per, per month, per year, based on starting location. See stations.js for valid :station values in the path. Only months that have rides. |
{2016: {1: {'Annual Membership': 300, 'Monthly Membership': 900, 'Hourly Membership': 700}, 2: {'Monthly Membership': 300, 'Pay-as-you-Go Membership: 900} }, 2002: {...}} |
/rides/count/:station/per_week/memberships | Total number of rides per membership type, per, per week, per year, based on starting location. See stations.js for valid :station values in the path. Only weeks that have rides. |
{2016: {1: {'Annual Membership': 300, 'Monthly Membership': 900, 'Hourly Membership': 700}, 2: {'Monthly Membership': 300, 'Pay-as-you-Go Membership: 900} }, 2002: {...}} |
/rides/example | A sample route to return one row of data. | {"id":1,"user_id":"","rental_id":"","start_lat":44.0,"start_lon":-121.3,"end_lat":44.0,"end_lon":-121.3,"start_time":"","end_time":"","membership":""} |
/ | A practice route. | I am listening! |
/ice_cream | A practice route. | word or phrase |
/you_lazy | A practice route. | word or phrase |
/cs | A practice route. | word or phrase |
/HELLO | A practice route. | word or phrase |
/LightningInABottle | A practice route. | word or phrase |
/help! | A practice route. | word or phrase |
/why_did_the_chicken_cross_the_road | A practice route. | word or phrase |
/howdy | A practice route. | word or phrase |
/how_are_you_sugar | A practice route. | word or phrase |
/winter | A practice route. | word or phrase |
/bend | A practice route. | word or phrase |
/yeet | A practice route. | word or phrase |
/hi | A practice route. | word or phrase |
/num_nums | A practice route. | word or phrase |
/pizza | A practice route. | word or phrase |
/uh_oh | A practice route. | word or phrase |
/tired | A practice route. | word or phrase |
/why_frog_sad | A practice route. | word or phrase |
/loss | A practice route. | word or phrase |
/listening | A practice route. | word or phrase |
/best_dog | A practice route. | word or phrase |
/weather | A practice route. | word or phrase |
/dogs | A practice route. | word or phrase |
/money | A practice route. | word or phrase |
/minecraft | A practice route. | word or phrase |
/query | A practice route. | word or phrase |
/please_help | A practice route. | word or phrase |
/RKS | A practice route. | word or phrase |
/HemenwayThanksgiving | A practice route. | word or phrase |
/Cat_nya | A practice route. | word or phrase |
/stubaruu | A practice route. | word or phrase |
/karp | A practice route. | word or phrase |
/NOID | A practice route. | word or phrase |
/can_I_get_a_hoo_yaa | A practice route. | word or phrase |
/Hungry | A practice route. | word or phrase |
/wright | A practice route. | word or phrase |
/Stewart | A practice route. | word or phrase |
/Bertram | A practice route. | word or phrase |
/kolb | A practice route. | word or phrase |
/best_town | A practice route. | word or phrase |
/football_team | A practice route. | word or phrase |
/cookie_dough | A practice route. | word or phrase |
/YOTE | A practice route. | word or phrase |
/Mock | A practice route. | word or phrase |
/Orue | A practice route. | word or phrase |
/mashjam | A practice route. | word or phrase |
/gomez | A practice route. | word or phrase |
/white | A practice route. | word or phrase |
/doodlebob | A practice route. | word or phrase |
/manbearpig | A practice route. | word or phrase |
/totallysecurechanneladminonly | A practice route. | word or phrase |
(c) 2018 Yong Bakos and the OSU Cascades CS 160 Mob. All right reserved.