go ahead... be a heretic | |
PerlMonks |
Re: Zipcode Proximity scriptby fizbin (Chaplain) |
on Apr 01, 2003 at 15:32 UTC ( [id://247259]=note: print w/replies, xml ) | Need Help?? |
Whoops. This is what I get for coding after my brain has already shut down for nightly maintenance. Those quick_accept and quick_reject routines will give false rejections with longitudes near the 180 degree longitude. (not an issue with US locations, I know, but...) Also, there's a stupid bit of time-wasting going on near the top there. Let's see if I can get it right this time:
And just again as a reminder, the sub's produced by these two routines accept longitudes and latitudes in RADIANS, not degrees. (Though reworking them to use degrees instead of radians should not be difficult at all) And if anyone uses this code without understanding how it works, they deserve what they get. No warranty of anything useful implied at all; the code may not even pass perl -c.
In Section
Seekers of Perl Wisdom
|
|