driver-core/src/main/com/mongodb/client/model/Filters.java
public static Bson near(final String fieldName, final Point geometry, @Nullable final Double maxDistance,
                            @Nullable final Double minDistance) {
        return new GeometryOperatorFilter<Point>("$near", fieldName, geometry, maxDistance, minDistance);
    }
public static Bson near(final String fieldName, final Point geometry, @Nullable final Double maxDistance,
                            @Nullable final Double minDistance) {
        return new GeometryOperatorFilter<Point>("$near", fieldName, geometry, maxDistance, minDistance);
    }
Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.

@param fieldName   the field name
@param geometry    the bounding GeoJSON geometry object
@param maxDistance the maximum distance from the point, in meters. It may be null.
@param minDistance the minimum distance from the point, in meters. It may be null.
@return the filter
@since 3.1
@mongodb.driver.manual reference/operator/query/near/ $near
@mongodb.server.release 2.4