Guest User

Untitled

a guest
Feb 13th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  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. ```
Add Comment
Please, Sign In to add comment