Creates a new NearQuery starting near the given coordinates.
Parameters:
x -
y -
Returns:
near
public static NearQuery near(double x,
double y,
Metric metric)
Creates a new NearQuery starting at the given coordinates using the given Metric to adapt given
values to further configuration. E.g. setting a maxDistance(double) will be interpreted as a value of the
initially set Metric.
Creates a NearQuery starting near the given Point using the given Metric to adapt given
values to further configuration. E.g. setting a maxDistance(double) will be interpreted as a value of the
initially set Metric.
Sets the max distance results shall have from the configured origin. If a Metric was set before the given
value will be interpreted as being a value in that metric. E.g.
public NearQuery maxDistance(double maxDistance,
Metric metric)
Sets the maximum distance supplied in a given metric. Will normalize the distance but not reconfigure the query's
result Metric if one was configured before.
Sets the minimum distance results shall have from the configured origin. If a Metric was set before the
given value will be interpreted as being a value in that metric. E.g.
public NearQuery minDistance(double minDistance,
Metric metric)
Sets the minimum distance supplied in a given metric. Will normalize the distance but not reconfigure the query's
result Metric if one was configured before.