G
G
Grigory Zhdanov2014-09-01 14:10:31
Android
Grigory Zhdanov, 2014-09-01 14:10:31

How does the search for friends work in the VKontakte application?

The VKontakte app for Android has recently introduced a new way to find friends. And I have a question what means this search uses
Q7hqXN5XF1c.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Entelis, 2014-09-01
@grovas

The device transmits its coordinates to the server.
The server keeps a database of the last coordinates of users.
For 2 pairs of coordinates, you can easily calculate the distance between them.
In the case of VK, this is less easy due to the huge amounts of data, I think that they honestly do not calculate the distance, but choose by squares, it is much cheaper.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question