S
S
Sergey2017-03-07 16:04:35
MySQL
Sergey, 2017-03-07 16:04:35

What is the best way to organize a geo search?

Hey!
There are many points with coordinates that are stored in the MYSQL database (5.6). It is necessary to determine the nearest point to any selected one. What mechanisms exist to carry out such a search? I heard about PostGIS from Postgres, is it suitable for these purposes? Is there an alternative to MySQL?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
k0nsu1, 2017-03-07
@mr_Verman

Implemented by searching on the polygon data type

P
Peter, 2017-03-07
@petermzg

So make it simple.
(DBLat - FindLat) + (DBLon - FindLon) sort by result.
The smallest value is what you want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question