I agree, geokit is pretty useful...you can do things like:
require 'geokit'
include GeoKit::Geocoders
coords = MultiGeocoder.geocode(location)
puts coords.lat
puts coords.lng
Where location is a string location (like an address). It works pretty well.
You can ALSO reverse geocode, which pulls a string address out of a lat/lng coordinate pair. Pretty spiffy.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…