Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple ruby gem to easily retrive live septa data.
branch: master

This branch is even with joannecheng:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
CHANGELOG.md
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
septa.gemspec

README.md

A SEPTA api wrapper gem.

to install:

gem install septa

to use:

require 'septa'

Getting raw response from bus_locations/:

bus = Septa::Bus.new(<bus_number>)

bus.bus_locations()

Getting just location and vehicleID

bus = Septa::Bus.new(<bus_number>)

bus.locations()

Next to arrive:

Septa::Train.next_to_arrive(City 1, City 2)

Example:

Septa::Train.next_to_arrive('Ambler', 'Angora')

Note: See http://www.opendataphilly.org/opendata/resource/171/septa-next-to-arrive/ to see allowed stops.

Something went wrong with that request. Please try again.