Project

howard

0.0
No commit activity in last 3 years
No release in over 3 years
Unofficial client library for the Chicago Transit Authority's Train Tracker API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.6
~> 10.0
~> 3.1

Runtime

~> 0.13
 Project Readme

Howard

Unofficial client library for the Chicago Transit Authority's Train Tracker API

Analytics

Installation

Add this line to your application's Gemfile:

gem 'howard'

And then execute:

$ bundle

Or install it yourself as:

$ gem install howard

Usage

Train Tracker API Key

In order to use the Train Tracker API, you will need to apply for an API key.

Once you have your API key, configure it like so:

Howard.api_keys do |key|
  key.train_tracker = "your API key here"
end

Train Arrivals

See train arrivals for a given station or stop.

arrivals = Howard.arrivals(stop: 41400, max: 5)
arrivals.first.route.full_name # => "Brown Line"
arrivals.first.train.run # => "419"
arrivals.first.train.latitude # => 41.97776
arrivals.first.delayed? # => false
arrivals.first.eta.to_s # => "2 min"

Fine Print

This library is not affiliated with or endorsed by the Chicago Transit Authority.