Advertise here: Contact FM.
SELECT *
FROM usertable
WHERE lat IS NOT NULL AND lon IS NOT NULL
AND DEGREES(ACOS(SIN(RADIANS(slat)) * SIN(RADIANS(lat)) + COS(RADIANS(slat)) * COS(RADIANS(lat)) * COS(RADIANS(slon-lon)))) * 69.04 < limit in statute milesbr>
LIMIT absolute max
>
posted by jenovus at 3:23 PM on February 25, 2006