| CPC G06F 16/90344 (2019.01) [G06F 16/29 (2019.01); G06F 16/9014 (2019.01)] | 20 Claims |

|
1. A computer-implemented method for discovering k-nearest-neighbors to a given object represented by a point within a certain linear, one-dimensional distance d, comprising:
obtaining an indexed set of geometries, and pruning a space of possible objects by gradually removing characters from one or more geocodes, the pruning enabling geomapping of the object represented by the point and minimizing a number of distance calculations by utilizing adaptive resolution properties of geohash;
calculating a geohash representation of the point with an adaptive resolution equal to a magnitude value of the certain linear, one-dimensional distance d, the calculating the geohash representation including determining a number of bits needed to encode accuracy of the distance d using the geohash representation;
searching for a closest-prefix geometry from the indexed set of geometries using the geohash representation of the point to identify all objects including at least a number of bits needed to encode accuracy of the distance d using the geohash representation;
calculating linear, one-dimensional distances between the point and geometries identified from the indexed set of geometries that have a same prefix as the closest-prefix geometry; and
determining k geometries with respective shortest linear, one-dimensional distances less than d from the geometries identified from the indexed set of geometries that have the same prefix as the closest-prefix geometry.
|