Kalkulator odległości od Lat Long SQL Query

COALESCE(
  	( 
      6371 * acos( cos( radians({$latitude}) ) * cos( radians( `latitude` ) ) * cos( radians( `longitude` ) - radians({$longitude}) ) + sin( radians({$latitude}) ) * sin( radians( `latitude` ) ) ) 
    )
  , 0) AS distance
Lokesh003