So, I want to be able to display a list of places (specified by a zip code) when a user requests all locations within x miles of their current location (specified by a zip code).
Is there any way to do this:
lat lng , .
, : 111,11 . , x * (1.609/111.11). , (LAT, LONG), LAT-x * (1.609/111.11) <= lat <= LAT + x * (1.609/111.11). MySQL; 50 , .
, .
MapKit. , .
111,111 . 111.111 * cos () , . (LAT, LONG) (lat, long)
sqrt ((LAT - lat)^2 + ((LONG - long) * cos (LAT))^2)