×

Method and server for searching for nearby user in social networking services

  • US 9,092,532 B2
  • Filed: 05/14/2014
  • Issued: 07/28/2015
  • Est. Priority Date: 11/16/2011
  • Status: Active Grant
First Claim
Patent Images

1. A method for searching for nearby users in Social Networking Services (SNS) applied to a computer comprising a storage and a processor, which executes instructions stored in the storage to execute steps of:

  • receiving location information and a user Identification (ID) from a client terminal device of a user X;

    determining a grid Y, to which the location information belongs;

    saving the user ID, the location information and reporting time of the user X in a list of the grid Y;

    wherein the grid Y is one of grids in a grid array obtained by dividing a surface of the earth into the grids and areas of the grids are the same;

    searching for users in the grid Y and other girds;

    wherein the grid Y and the other grids form an N-grid and the grid Y is a center of the N-grid, N=n*n, n is an odd larger than or equal to 3;

    ranking the users according to distances between the users and the user X and the reporting time of the user X;

    wherein the closer a distance between a user and the user X, the higher rank of the user is, and the shorter time between the reporting time of the user and a current time is, the higher the rank of the user is; and

    sending the ranked user IDs of the users and the distances between the users and the user X to the client terminal device of the user X,wherein the ranked user IDs of the users are received by the user X and used by the user X to contact other users;

    wherein ranking the users according to the distances between the users and the user X and the reporting time of the user X comprises;

    computing a weight Ai=a*Di+b*Ti of a user i;

    wherein a and b are weighting coefficients, Di is a distance between the user i and the user X, Ti is time between the current time and the reporting time of the user i; and

    ranking the users in an ascending order of the weight.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×