A simple flask app + nginx block to serve it which allows users to pull from Vancouver's live mobi bikeshare API
tarfeef101 8eb33cdd53 redundant word in readme | преди 4 години | |
---|---|---|
historical | преди 4 години | |
live | преди 4 години | |
web | преди 4 години | |
README.md | преди 4 години | |
docker-compose.yaml | преди 4 години | |
notes.txt | преди 4 години |
Simple http(s) API to get Mobi Bikeshare station information live
To get the available bikes+slots at Tareef's Home Station, hit https://api.tareef.tech/api/home.
To get the available bikes+slots at Tareef's Workplace Station, hit https://api.tareef.tech/api/work.
To get the same information about any stations, hit https://api.tareef.tech/api/station_id or https://api.tareef.tech/api/station_name, where station_id
is the station ID shown in the mobi website, and station_name
is the station name (i.e. Pender & Burrard
). Please note that the spaces/special characters should be encoded in the latter case, but most tools will handle that for you.
To get only a given metric about a given station, hit https://api.tareef.tech/api/station/metric, where the station
is defined like above, and the metric is one of: [spots, bikes, capacity, location]
.