If you are building geography based mashups in Rails, or just need some simple calculations for distance, be sure to check out GeoKit plugin and Geonames API Gem. They will save you hours of time.
What is GeoKit?
“Geokit is a Rails plugin for building location-based apps. It provides geocoding, location finders, and distance [...]