Mysql within distance query

非 Y 不嫁゛ 提交于 2019-11-30 20:56:11

that looks like the correct great circle distance query.

what are you concerned with wrt accuracy?

if you want calculate distance from to point or find nearly place to one pointin mysql, you can use "MySQL Spatial Functions", but it is enable in MySQL 5.6. for more information you can read this article:

https://www.percona.com/blog/2013/10/21/using-the-new-mysql-spatial-functions-5-6-for-geo-enabled-applications/

or this PDF:

http://www.arubin.org/files/geo_search.pdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!