public static BooleanExpression near ( Expression < Double [ ] > expr , double latVal , double longVal ) { return Expressions . booleanOperation ( MongodbOps . NEAR , expr , ConstantImpl . create ( new Double [ ] { latVal , longVal } ) ) ; }
Finds the closest points relative to the given location and orders the results with decreasing proximity