I'm having a database with over 6000 GPS locations. I'd like to compare the user's current location and detect whether the user is within distance of 10 meters from any of the 6000 locations.
How can I achieve that without going thorugh all 6000 points and calculating their relative distance ?
Thanks, Daniel
UPDATE: How about if I'll put the user's current location in the middle of a 5^2 meter rectangle and extract all the locations with current.latitude between bottm_right.latitude and top_left.latitude and same goes for longtitude ?