[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

City, State Lookup from Postal Code

Bill Grundler

11/29/2007 11:24:00 PM

Does anyone know the easiest way to find a city and state based on a
supplied postal code?

Thanks for your help.
--
Posted via http://www.ruby-....

3 Answers

Thiago Jackiw

11/29/2007 11:34:00 PM

0

You could use Google's or Yahoo's geo-coding api for that.

--
Thiago Jackiw
acts_as_solr => http://acts-as-solr.rails...

On Nov 29, 2007 3:23 PM, Bill Grundler <truegrundler@gmail.com> wrote:
> Does anyone know the easiest way to find a city and state based on a
> supplied postal code?
>
> Thanks for your help.
> --
> Posted via http://www.ruby-....
>
>

Christian von Kleist

11/29/2007 11:53:00 PM

0

On Nov 29, 2007 6:34 PM, Thiago Jackiw <tjackiw@gmail.com> wrote:
> You could use Google's or Yahoo's geo-coding api for that.
>
> --
> Thiago Jackiw
> acts_as_solr => http://acts-as-solr.rails...
>
>
> On Nov 29, 2007 3:23 PM, Bill Grundler <truegrundler@gmail.com> wrote:
> > Does anyone know the easiest way to find a city and state based on a
> > supplied postal code?
> >
> > Thanks for your help.
> > --
> > Posted via http://www.ruby-....
> >
> >
>
>

I had to do that for a store website once, and I bought a giant text
file with every ZIP code for about $5. ZIP codes change from time to
time (and new ones are added), so you have to buy a new copy every
once in a while.

Or you could use the APIs Bill talked about, which is probably a more
robust solution, though a bit more complicated to implement.

Bill Grundler

11/30/2007 5:11:00 AM

0

Thanks guys. Very helpful
--
Posted via http://www.ruby-....