问题
I have to make an Android 2.2 application that requires to find all location within a given distance. I have the longitude and latitude for all locations I use in my app, but for example if I want to find only the locations within 5 km how could I do that? I use SQLite so I cannot use functions like cos,sin etc.. I have spent all day long searching for an answer so I would be very grateful if you could help me.
Thanks
来源:https://stackoverflow.com/questions/9791074/android-find-all-locations-within-a-given-distance