Module: Mongoid::Criterion::Inclusion
- Defined in:
- lib/mongoid/geo/criterion/inclusion.rb
Instance Method Summary collapse
-
#nearSphere(attributes = {}) ⇒ Criteria
Adds a criterion to the
Criteria
that specifies values to do geospacial searches by.
Instance Method Details
#nearSphere(attributes = {}) ⇒ Criteria
Adds a criterion to the Criteria
that specifies values to do geospacial searches by. The field must be indexed with the ā2dā option.
14 15 16 |
# File 'lib/mongoid/geo/criterion/inclusion.rb', line 14 def nearSphere(attributes = {}) update_selector(attributes, "$nearSphere") end |