daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ### Calculo de distância. _Distance calculation._
  2.  
  3. Esta função MySQL retorna a distância (em KM) entre dois pontos com Latitude e Longitude.
  4.  
  5. _This MySQL function returns the distance (in Kilometers) between two points with Latitude and Longitude._
  6.  
  7. ### Exemplo de uso. _Example of use._
  8.  
  9. ```mysql
  10. SELECT address.*, distance_latlng_km(13.6576773, -69.7116724, address.lat, address.lng) AS distance_km FROM address ORDER BY distance_km ASC
  11. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top