lat/lon ranges
Posted: Wed Feb 22, 2006 2:58 am
I was looking about a zip code calculator class and I came accross this piece of math
in the $lon_range, should $lat be in there? or should that be $lon? When I substitude $lat for $lon I get roughly the same numbers, so I'm confused as to which is correct? 
Code: Select all
$lat_range = $range/69.172;
$lon_range = abs($range/(cos($lat) * 69.172));