ATCO-CIF parser written in Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with davidjrice:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autotest
data
lib
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
README.mdown
Rakefile
VERSION
atco-cif-spec.pdf
atco.gemspec
todo.mdown

README.mdown

ATCO-CIF

ATCO-CIF is the format of choice for UK public transport authorities. This is a ruby library that reads .cif files and gives you JSON back.

USAGE

Currently this library is under-development and has several things left to do before it is perfect (see the todo.mdown list ).

  • clone this library
  • start an irb session
  • put the cif file in ./data (needs to change from being hardcoded)

Code example, for more detailed internal api usage see the spec files.

gem install atco
irb


require 'rubygems
require 'atco'

result = Atco.parse('filename.cif')
result = Atco.parse('SVRTMAO009A-20091005.cif) # an example data file in the repo

=> {
  :header => {...},
  :locations => [...],
  :journies => {...}
}