Skip to content

Commit

Permalink
research info
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Choi committed Oct 14, 2011
1 parent f1e30a4 commit c53ab9d
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 62 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ log/*.log
tmp/

t_alerts/curl.sh
mbtadump.sql
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ GEM
sequel (3.23.0)
sinatra (1.2.6)
rack (~> 1.1)
tilt (< 2.0, >= 1.2.2)
tilt (>= 1.2.2, < 2.0)
thor (0.14.6)
tilt (1.3)
treetop (1.4.9)
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ def index
end
end



end

2 changes: 2 additions & 0 deletions app/controllers/research_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class ResearchController < ApplicationController
end
3 changes: 0 additions & 3 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<h1>OpenMBTA</h1>

<p>

OpenMBTA is a <strong>free, open-source</strong> platform for delivering public
transit schedules and real-time data to commuters in the Boston metro area.
OpenMBTA is being actively developed for Bostonians by Bostonians, with a lot
of help and encouragement from our first-rate public servants at the MBTA.

</p>


<hr/>
<a name="android"></a>

Expand Down
61 changes: 61 additions & 0 deletions app/views/research/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<h1>OpenMBTA Research</h1>

<p>This page is for research based on OpenMBTA's log data.</p>

<p>
The Google Group for OpenMBTA research can be found at
<a
href="http://groups.google.com/group/openmbta-research">http://groups.google.com/group/openmbta-research</a>.
Membership in the Google Group is selective and requires moderator approval.
</p>

<p>We're making processed logs of OpenMBTA client data available for
download. This log data is formatted in CSV and IP addresses have been
stripped out.</p>

<p>
The CSV file currently looks like this:
<pre>
Bus,211,Squantum via North Quincy,2011-06-01 16:34:52 -0400
Bus,10,Outbound: City Point via South Bay Center ^ Andrew Station,2011-06-01 16:35:12 -0400
Bus,11,Bayview via Broadway,2011-06-01 16:35:45 -0400
Commuter Rail,Providence/Stoughton,Inbound,2011-06-01 16:35:47 -0400
Bus,1,Inbound: Dudley Station via Mass. Ave.,2011-06-01 16:36:01 -0400
Bus,10,Outbound: City Point via South Bay Center ^ Andrew Station,2011-06-01 16:36:03 -0400
Commuter Rail,Providence/Stoughton Line,Inbound: South Station,2011-06-01 16:36:08 -0400
Bus,SL2,Inbound: South Station,2011-06-01 16:36:16 -0400
Subway,Green Line,Inbound,2011-06-01 16:36:25 -0400
Subway,Green Line,Outbound,2011-06-01 16:36:36 -0400
Commuter Rail,Providence/Stoughton Line,Outbound: Providence,2011-06-01 16:36:40 -0400
</pre>
The fields are <code>transport type, headsign, direction, time</code>.
</p>

<p>
We'll publish more data going further back in time as we get around to
converting them to CSV format.
</p>

<h3>Downloads</h3>

<table class="downloads">
<thead>
<th>download</th>
<th>period</th>
<th>size</th>
<th>num records</th>
</thead>
<tbody>
<tr>
<td>
<a href="http://openmbta.org/research/20110601-20111014.csv">20110601-20111014.csv</a>
</td>
<td>
Jun 6, 2011 - Oct 14, 2011
</td>
<td> 126M </td>
<td> 1827383 entries </td>
</tr>
</tbody>
</table>

59 changes: 3 additions & 56 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,63 +13,10 @@
match '/mobile' => 'main#index'
match '/trips/realtime' => 'main#index'
match '/main' => 'main#index'
match '/' => 'home#index'
match '/:controller(/:action(/:id))'

# The priority is based upon order of creation:
# first created -> highest priority.

# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action

# Sample of named route:
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)

# Sample resource route (maps HTTP verbs to controller actions automatically):
# resources :products

# Sample resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
match '/research' => 'research#index'

# Sample resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end

# Sample resource route with more complex sub-resources
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', :on => :collection
# end
# end

# Sample resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end

# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
# root :to => "welcome#index"

# See how all your routes lay out with "rake routes"
match '/' => 'home#index'
match '/:controller(/:action(/:id))'

# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id(.:format)))'
end
19 changes: 19 additions & 0 deletions public/stylesheets/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,22 @@ table.pin td {
margin-bottom: 20px;
font-style: italic;
}

pre {
font-size: smaller;
}
code {
background-color: #EDEDED;
}
table.downloads { width: 100%; }
table.downloads thead {
border-bottom: 1px solid #ccc;
}
table.downloads th,
table.downloads td {
padding: 5px 0 ;
}
table.downloads th,
table.downloads td {
text-align: left;
}

0 comments on commit c53ab9d

Please sign in to comment.