The degree of latitude varies little , from about 110.6 km at the equator to about 111.7 near the poles. If the Earth were an ideal sphere, it would be permanent. For purposes such as obtaining a list of points within 10 km of the known (lat, lon), provided that a constant of 111 km should be in order.
However, this is a completely different story with longitude . It ranges from about 111.3 km at the equator, 55.8 km at 60 degrees latitude, 1.9 km at 89 degrees latitude to zero at the pole.
You asked the wrong question; you need to know MINIMUM length to ensure that your request does not reject valid candidates, and, unfortunately, the minimum length in longitude is ZERO!
Let's say you take other people's councils to use a constant of about 111 km for latitude and longitude. For a 10 km query, you should use a margin of 10/111 = 0.09009 degrees in latitude or longitude. This is normal at the equator. However, at the 60th latitude (where, for example, Stockholm), traveling east at 0.09 degrees longitude, you get only about 5 km. In this case, you incorrectly reject approximately half of the valid answers !
Fortunately, the calculations for obtaining the best longitude boundary (which depends on the latitude of the known point) are very simple - see this answer by SO , and the article by Jan Matushek that he refers.
John Machin Jul 14 '10 at 23:12 2010-07-14 23:12
source share