Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Failed to load latest commit information.
urlgrab @ 9ae7e32
.gitignore Generalise and fix loc info + do directions
.gitmodules Initial commit
NOTES Do co2 calculations
TODO Add Mapquest note to TODO
app.yaml App now runs under Google App Engine
data sources.txt Initial commit
directions.txt Initial commit
index.yaml App now runs under Google App Engine
plane-Domestic Do co2 calculations
plane-LongHaul Do co2 calculations
tc.ini.example Add Mapquest directions support Do right original location for re-written location searches
train-National Do co2 calculations


README for Travel compare

This isn't really a proper readme yet, more a "here's some notes". Patches for this as well as 
everything else are very welcome (send them to This project was originally 
generated as part of the EcoMo '09 developer sprint.


* Copy tc.ini.example to tc.ini
* Copy a Yahoo AppID (you can get one by registering your own copy of the app at to the yahoo_id. 
* Copy a Mapquest AppID (registration at to mapquest_key
* Download the AppEngine environment from and run the 
  development server ( to get
  the system running on your local machine.

One TODO item is making this work without all that setup....

Technical details
I used the <a href="">Yahoo Geocoding API</a> 
to get locations from whatever strings users gave me, then scraped 
<a href="">Google Maps</a> for travel distances (admittedly for cars, 
but a reasonable first approximation to trains). Using the <a href="">AMEE data</a>
for carbon footprints, I could then get approximate CO<sub>2</sub> values for planes/trains (assuming
there's trains everywhere, and airports outside your front door). I then scraped
<a href="">ebookers</a> for plane times/prices (bit unreliable and darn 
slow, but got some data). I also used's data for "bottles of beer equivalents" to the CO<sub>2</sub>.
Something went wrong with that request. Please try again.