I recently stated working on gps maps. I have a database with list of lat and longitudes. when a user access my web app, I want to display places with in 1km or specified radius from user point. I tried using mysql query
SELECT * FROM Locations
WHERE (latitude between MINLATITUDE and MAXLATITUDE )
and (longitude between MINLONGITUDE and MAXLONGITUDE)
but it displays lat and longitudes between min and max, could some one tell me how to show lat and longitudes which are only with in 1km radius from user point.
Thanks.