Mysql within distance query

前端 未结 1 1912
孤独总比滥情好
孤独总比滥情好 2021-01-05 23:28

Options

$lat = \'25.7742658\';
$lng = \'-80.1936589\';
$miles = 30;

Query

SELECT *, 
   ( 3959 * acos( cos( radians($lat) )         


        
相关标签:
1条回答
  • 2021-01-05 23:56

    that looks like the correct great circle distance query.

    what are you concerned with wrt accuracy?

    0 讨论(0)
提交回复
热议问题