Permalink
Browse files

remove taxifarefinder references upon request

  • Loading branch information...
1 parent e9d2bba commit e8f7eae9de20d4f099443b197db71770326ba811 @atogle atogle committed Jul 25, 2012
Showing with 4 additions and 6 deletions.
  1. +1 −3 README.md
  2. +1 −1 public/index.html
  3. +2 −2 taxi_generate.rb
View
@@ -107,9 +107,7 @@ Returns:
### Taxi
-**Cost** - Uses [TaxiFareFinder.com][14]
-
- [14]: http://www.taxifarefinder.com/rates.php
+**Cost** - Uses scraped taxi rates
**Time** - Calculated by [Bing Driving Routes API][15]
View
@@ -104,7 +104,7 @@ <h3>Transit</h3>
<p><strong>CO<sub>2</sub> Emissions</strong> - <a href=" http://www.fta.dot.gov/documents/PublicTransportationsRoleInRespondingToClimateChange.pdf">0.65 pounds of CO<sub>2</sub> per passenger mile</a> - assuming bus transit</p>
<h3>Taxi</h3>
- <p><strong>Cost</strong> - Uses <a href="http://www.taxifarefinder.com/rates.php">TaxiFareFinder.com</a></p>
+ <p><strong>Cost</strong> - Uses scraped taxi rates</p>
<p><strong>Time</strong> - Calculated by <a href="http://msdn.microsoft.com/en-us/library/ff701717.aspx">Bing Driving Routes API</a></p>
<p><strong>Calories</strong> - 1.4-1.7 calories per idle minute</p>
<p><strong>CO<sub>2</sub> Emissions</strong> - <a href=" http://www.fta.dot.gov/documents/PublicTransportationsRoleInRespondingToClimateChange.pdf">0.96 pounds of CO<sub>2</sub> per passenger mile</a> - assuming single occupancy vehicle</p>
View
@@ -3,7 +3,7 @@
require 'net/http'
require 'cgi'
-#csv_to_hashed, with some keys ignored. courtesy of http://www.taxifarefinder.com/rates.php
+#csv_to_hashed, with some keys ignored, via http://www.taxifarefinder.com/rates.php
$taxi_info = [{"Add. Charge (per mile)"=>"$2.80",
"City"=>"Boston",
"Wait Time Charge (per hour)"=>"$28.00",
@@ -144,7 +144,7 @@
"Wait Time Charge (per hour)"=>"$22.00",
"Initial Increment (mile)"=>"1/10",
"Initial Charge"=>"$2.50"}]
-
+
KM_PER_MILE = 1.609344
$taxi_info.each {|l| r= JSON.parse(Net::HTTP.get(URI.parse("http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address="+CGI.escape(l["City"]))))["results"][0]["geometry"]["location"]; l[:lat]=r["lat"]; l[:lon]=r["lng"]}

0 comments on commit e8f7eae

Please sign in to comment.