Use the Swiss public transport API (open data)
Use the Swiss public transport API (open data). http://transport.opendata.ch
gem install transprt
#run example
ruby example.rb
http://transport.opendata.ch/#locations
require 'transprt'
Transprt.locations :query => 'Geneva'
# => [{"id"=>"008501008", "name"=>"Genève", "score"=>"101", "coordinate"=>{"type"=>"WGS84", "x"=>6.142455, "y"=>46.210199}, "distance"=>nil}]
http://transport.opendata.ch/#connections
require 'transprt'
Transprt.connexions :from => 'Lausanne', :to => 'Geneva'
http://transport.opendata.ch/#stationboard
# Display station board
Transprt.stationboard :station => 'Lausanne'
MIT License (MIT)