Method: Mongoid::Extensions::Symbol::Inflections#geoNear

Defined in:
lib/mongoid/geo/inflections.rb

#geoNearObject Also known as: geo_near

$nearSphere $centerSphere

nearMax

  • { $near : [50,50] , $maxDistance : 5 }

withinBox

  • : {“$box” : box

withinCenter

  • : {“$center” : [center, radius]}})



15
16
17
# File 'lib/mongoid/geo/inflections.rb', line 15

def geoNear
  Criterion::Complex.new(:operator => 'geoNearSphere', :key => self)          
end