# File lib/sunspot/query/geo.rb, line 19 def to_params { :q => to_boolean_query } end
# File lib/sunspot/query/geo.rb, line 23 def to_subquery { :q => "(#{to_boolean_query})" } end
# File lib/sunspot/query/geo.rb, line 14 def initialize(field, lat, lng, options) @field, @options = field, options @geohash = GeoHash.encode(lat.to_f, lng.to_f, MAX_PRECISION) end