Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby gem for parsing UK public transport data
Ruby
tree: e6eb40a0d8

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Gemfile
Gemfile.lock
README.rdoc

README.rdoc

UKTransport

UKTransport is a Ruby gem for parsing Naptan CSV files and NPTD CIF files.

It uses local files and provides a Ruby interface for reading it.

Usage

uktransport.naptan(filename) => array of bus stops (id, lat, long)
uktransport.nptd(filename)
uktransport.nptd.routes => array of bus routes (id, name, stops(one, two, three))
uktransport.nptd.stops => array of bus stops (id, name, routes(one, two, three))
Something went wrong with that request. Please try again.