How to use GPS data like the double value returned by getLatitude()?
Posted
by
Dan
on Stack Overflow
See other posts from Stack Overflow
or by Dan
Published on 2012-09-10T12:35:26Z
Indexed on
2012/09/10
21:38 UTC
Read the original article
Hit count: 162
I have been searching quite a bit for an answer, but maybe I'm just not using the correct terminology. I am creating an app that will access a database to return a list of other users that are within a certain distance of the users location. I've never worked with this type of data, and I don't really know what the values mean. I'd like to do all the calculations on the backend with either MySQL or PHP. Currently, I am storing the latitude and longitude as doubles within the database. I can access them and store them, but I have no idea how I might be able to sort them based on distance. Perhaps I should be using a different type or some technique that is common in this area. TIA.
© Stack Overflow or respective owner