Created
October 9, 2018 20:01
-
-
Save victusfate/34fe6dad9a548a27fbca12d43b518751 to your computer and use it in GitHub Desktop.
mysql ellipsoidal query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select st_distance( | |
point(32.22174290, -110.92647900), | |
point(places.latitude, places.longitude) | |
) as distance, places.* | |
from places | |
order by distance asc | |
limit 50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment