I agree geokit is very 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 (e.g. address). It works very well.
You can also turn off the geocode that pulls the string address from the lat / lng coordinate pair. Pretty spiffy.
Jenny source share