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/envelope.crcitibike/station_information.cr
citibike/station_status.cr
citibike/system_alerts.cr
citibike/system_information.cr
citibike/system_regions.cr
citibike/version.cr
citibike.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.