I have a database that holds several geo locations.
In my SQL query I would like to sort by distance from my location. So far I add my gps longitude and latitude to the query.
It seems to work. But, since the geo grid is not linear, is this the correct way? I mean, two points on the equator are farther apart than two points on some other latitude line.
Is there another way?