问题
In the example page it is shown how to do a neighbor search with a limit on the number of returned items. Is it possible to also specify a distance limit? I.e.:
Return all items that are at most X distance from the point, and further limit the result to Y number of items."
回答1:
No, if you need distance, use OVERLAPS. https://tarantool.org/doc/book/box/box_index.html#rtree-iterator
来源:https://stackoverflow.com/questions/39644902/spatial-search-for-neighbor-with-distance-limit