|
This will give you an approximation. If you do some research and a
little more math, you can come up with a more accurate number. Since you have the lat/lon of two points, you can draw a right triangle and then get the distance of the hypotenuse, in degrees, and then multiple that by 69.11 (which is the number of miles in a degree according to this site: http://wiki.answers.com/Q/How_many_miles_are_in_a_degree_of_longitude_or_latitude). If we use 100,50 and 122,38 as the two zip code centers we get 22 and 12 as the distance in degrees of the two sides of a right triangle. a^2 + b^2 = 628 (c^2), so c = 25.0599 degrees, which is 1,731.9 (rounded) miles. If you take the cosines of the latitudes and average them, you will get a more accurate result. If you don't your results will all be inaccurate to a varying degree, but you could still reliable compare distances. Jason Jason Kramer University Archives and Records Management 002 Pearson Hall (302) 831 - 3127 (voice) (302) 831 - 6903 (fax) On 9/12/2011 10:37 AM, Dan Goldberg wrote:
|
- [RBASE-L] - Re: SOT-Find distance between two postal codes in... Bill Downall
- [RBASE-L] - Re: SOT-Find distance between two postal cod... Jason Kramer

