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 gadi atpakaļ
historical 1472d35736 POC that was made on the plane 4 gadi atpakaļ
live d792fecdc7 changes to allow for live deployment vs on-plane POC w/ local files 4 gadi atpakaļ
web 1472d35736 POC that was made on the plane 4 gadi atpakaļ
README.md 8eb33cdd53 redundant word in readme 4 gadi atpakaļ
docker-compose.yaml d792fecdc7 changes to allow for live deployment vs on-plane POC w/ local files 4 gadi atpakaļ
notes.txt 1472d35736 POC that was made on the plane 4 gadi atpakaļ

README.md

Description

Simple http(s) API to get Mobi Bikeshare station information live

Usage

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].