The NEARBY command searches a collection for objects that are close to a specified point. The KNN algorithm is used instead of the standard overlap+Haversine algorithm, sorting the results in order of ascending distance from that point, i.e., nearest first.
This command has many options, but at it’s most simplest it may appear like:
to find the object closest to the given point.
If the radius is given:
then the search will be limited by that radius, in this case
For a complete list of search options please see the INTERSECTS command.
For a complete list of output formats please see the INTERSECTS command.