module Geocoder::Model::ActiveRecord
def geocoded_by(address_attr, options = {}, &block)
Set attribute names and include the Geocoder module.
#
def geocoded_by(address_attr, options = {}, &block) geocoder_init( :geocode => true, :user_address => address_attr, :latitude => options[:latitude] || :latitude, :longitude => options[:longitude] || :longitude, :geocode_block => block, :units => options[:units], :method => options[:method], :lookup => options[:lookup], :language => options[:language], :params => options[:params] ) end