Geo-PostalCode
view release on metacpan or search on metacpan
0.06 09/24/2003
Scott Gifford contribed the following changes
* query_postal_codes contained some errors:
+ It assumed that the space between single degrees of latitude and
longitude are the same. This only holds true at the equator;
otherwise the distance between two degrees longitude is:
cos($lat*PI/180)*LON_MILEAGE_CONSTANT
This formula is probably well-known, but I got it from:
http://www.malaysiagis.com/related_technologies/mapping/basics1b.cfm
This corrected a bug where the cells searched would often miss
areas that were a ways away from the site.
+ There were bugs when the search radius crossed the poles, the
prime meridian, or the -180/180 longitude line. All of these
are now fixed in various ways (see the code).
( run in 0.482 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )