I want get all locations around my location but the function ST_Distance_Sphere does not work.
ST_Distance_Sphere
My query:
select *, astext(location) as locat
http://mysql.rjweb.org/doc.php/find_nearest_in_mysql#gcdistdeg
That blog discusses multiple ways of "finding nearest" on the globe in MySQL/MariaDB. As part of that discussion, I developed that Stored Function.