module Geocoder::Model::MongoBase

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,
    :coordinates   => options[:coordinates] || :coordinates,
    :geocode_block => block,
    :units         => options[:units],
    :method        => options[:method],
    :skip_index    => options[:skip_index] || false,
    :lookup        => options[:lookup],
    :language      => options[:language]
  )
end