On Dec 14, 2005, at 7:38 AM, Dave wrote:
Adam D. wrote:
Does anybody know of a good Geocode library for Ruby, similar to
Geocode::Postal, that i could use in my rail app? I need to do some
5 miles” calculations of zipcodes and i dont have a nice ruby (or
utility to do it.
It doesn’t read like you’re doing strict geocoding here. To solve the
“within 5 miles” of zipcode problem, you need are the coordinates
extremities of said zipcode. Since latitude and longitude correspond
to distance, you then need to obtain how many degrees correspond to
your desired distance. You then merely need to check if the given
address’s coordinates fall into this range.
Hasan D. email@example.com