I want to find nearby registered locations from a database and i can get the current location of the user from GPS android. It would be nice if the nearby registered locations are derived from the database are limited by a radius of 3km.
I can store the latitude and longitude values in the database but, what is the best way to find neaby location ? Retrive and check in the android or directly checking it in the php and then retriving it to the android device.?
For example:A user registers his location, it will be stored in the database and later when another user tries to find nearby registered users the most nearby user should be retrived.