public static Bson near(final String fieldName, final double x, final double y, @Nullable final Double maxDistance,
                            @Nullable final Double minDistance) {
        return createNearFilterDocument(fieldName, x, y, maxDistance, minDistance, "$near");
    }
public static Bson near(final String fieldName, final double x, final double y, @Nullable final Double maxDistance,
                            @Nullable final Double minDistance) {
        return createNearFilterDocument(fieldName, x, y, maxDistance, minDistance, "$near");
    }
public static Bson near ( final String fieldName , final double x , final double y , @ Nullable final Double maxDistance , @ Nullable final Double minDistance ) { return createNearFilterDocument ( fieldName , x , y , maxDistance , minDistance , "$near" ) ; }
Creates a filter that matches all documents containing a field with geospatial data that is near the specified point.

@param fieldName   the field name
@param x           the x coordinate
@param y           the y coordinate
@param maxDistance the maximum distance from the point, in radians. It may be null.
@param minDistance the minimum distance from the point, in radians. It may be null.
@return the filter
@since 3.1
@mongodb.driver.manual reference/operator/query/near/ $near
@mongodb.server.release 2.4
Creates a filter that matches all documents containing a field with geospatial data that is near the specified point .