distance calculator from lat long sql query

Solutions on MaxInterview for distance calculator from lat long sql query by the best coders in the world

showing results for - "distance calculator from lat long sql query"
Juan José
11 Jun 2016
1COALESCE(
2  	( 
3      6371 * acos( cos( radians({$latitude}) ) * cos( radians( `latitude` ) ) * cos( radians( `longitude` ) - radians({$longitude}) ) + sin( radians({$latitude}) ) * sin( radians( `latitude` ) ) ) 
4    )
5  , 0) AS distance