After watching RailsCasts #273 I want to use the Geocoder gem. I’ve seen this:
class Skatepark < ActiveRecord::Base
reverse_geocoded_by :latitude, :longitude
after_validation :fetch_address
...
end
which will reverse geocode the coordinates and populate :address with formatted_address.
Can I get this separated as :street, :locality, :region, :country, and :postal_code from the geocoder gem?
I don’t know your model but this is how you populate it. It’s also documented in the page you referred to.