module CitiBike
Overview
A simple wrapper over the NYC Citi Bike GBFS feed. Uses the feed's TTL to cache requests.
Extended Modules
Defined in:
citibike.crcitibike/envelope.cr
citibike/station_information.cr
citibike/station_status.cr
citibike/system_alerts.cr
citibike/system_information.cr
citibike/system_regions.cr
citibike/version.cr
Constant Summary
-
BASE_URL =
"https://gbfs.citibikenyc.com/gbfs/en"
-
The base URL for all NYC Citibike GBFS requests.
-
VERSION =
"0.1.0"
Instance Method Summary
-
#station_information
Returns an
Array
ofStationInformation::Station
s. -
#station_status
Returns an
Array
ofStationStatus::Status
es. -
#system_alerts
Returns an
Array
ofSystemAlerts::Alert
s. -
#system_information
Returns a
SystemInformation
containing metadata about the bikeshare. -
#system_regions
Returns an
Array
of allSystemRegions::Region
s.