摘要 |
<p>Disclosed are a method and server for searching for nearby users in a social network, the method comprising: after receiving the position information and a user identifier reported by the client-side of any user X, determining a grid Y where the received position information is located, and storing the user identifier and the latest position information of user X only in the list corresponding to grid Y, grid Y being any one grid in a series of grid arrays with an equal area pre-plotted on the earth surface; searching for the users in grid Y and the other grids forming an N-grid structure together with grid Y and taking grid Y as center; sequencing the searched users in the sequence from proximal to distal according to distances to user X, and returning to the client-side of user X the user identifiers of the sequenced users and the distances to user X; the reporting time can be further considered as another factor in the sequencing process. The method and device of the present invention improve the accuracy of search result.</p> |
申请人 |
TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED |
发明人 |
CHEN, JUNCHAO;LAI, ZHONGHUA;CUI, HAOCHUAN;WU, YU;MA, CUILONG;FENG, JINGQIONG;HUANG, TIANQING;YE, WA;LIN, XIANGYAO;LIN, XUEQIN;ZHANG, YUXUAN;RONG, KUNFENG;LING, GUO |