Zip code to city lookup

Discussion in 'PHP' started by matthewrobertbell, Aug 12, 2008.

  1. #1
    I need to lookup thousands of zip codes, and find out which city they are in (USA). Anyone got a database of it?

    thanks
     
    matthewrobertbell, Aug 12, 2008 IP
  2. Pos1tron

    Pos1tron Peon

    Messages:
    95
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well there are a lot of paid databases (see google), so many I suspect they're all just copies of a master one purchased from the USPS or someone, but I couldn't find a free one you can install on a website - the only free ones I immediately came across were on ad laden pages where you typed it in manually.
     
    Pos1tron, Aug 12, 2008 IP
  3. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i *cough* acquired one, all's good.
     
    matthewrobertbell, Aug 13, 2008 IP
  4. Syndication

    Syndication Active Member

    Messages:
    351
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    90
    #4
    Just a note to others out there, it would be very simple to write a script that looks up the zip in google (ex: google.com/search?q=32578) and just use a regular expression to extract it.
     
    Syndication, Aug 13, 2008 IP
  5. Pos1tron

    Pos1tron Peon

    Messages:
    95
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Except you'd get CAPTCHAs if google noticed your IP requesting a lot of searches (this happens automatically)... and eventually more serious action.
     
    Pos1tron, Aug 13, 2008 IP
  6. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yea, much better to get a database, i was looking up 30k ZIPs
     
    matthewrobertbell, Aug 15, 2008 IP