gem install geokit
在IRB:
require 'geokit' geo = GeoKit::Geocoders::MultiGeocoder.multi_geocoder('90210') if geo.success geo.state # => CA geo.city # => Beverly Hills end