lib/geokit-rails/acts_as_mappable.rb
# If it's a :within query, add a bounding box to improve performance.
# This only gets called if a :bounds argument is not otherwise supplied. 
If it's a :within query, add a bounding box to improve performance.
This only gets called if a :bounds argument is not otherwise supplied.
If it ' s a : within query add a bounding box to improve performance . This only gets called if a : bounds argument is not otherwise supplied .
def formulate_bounds_from_distance(options, origin, units)
        distance = options[:within] if options.has_key?(:within)
        distance = options[:range].last-(options[:range].exclude_end?? 1 : 0) if options.has_key?(:range)
        if distance
          res=Geokit::Bounds.from_point_and_radius(origin,distance,:units=>units)
        else 
          nil
        end
      end
def formulate_bounds_from_distance ( options , origin , units ) distance = options [ :within ] if options . has_key? ( :within ) distance = options [ :range ] . last - ( options [ :range ] . exclude_end? ? 1 : 0 ) if options . has_key? ( :range ) if distance res = Geokit :: Bounds . from_point_and_radius ( origin , distance , :units => units ) else nil end end
If it's a :within query, add a bounding box to improve performance.
If it ' s a : within query add a bounding box to improve performance .
options
<not_specific>
origin
<not_specific>
units
<not_specific>