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.cr
citibike/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

Instance Method Detail

def station_information #

Returns an Array of StationInformation::Stations.


[View source]
def station_status #

Returns an Array of StationStatus::Statuses.


[View source]
def system_alerts #

Returns an Array of SystemAlerts::Alerts.


[View source]
def system_information #

Returns a SystemInformation containing metadata about the bikeshare.


[View source]
def system_regions #

Returns an Array of all SystemRegions::Regions.


[View source]