not getting zip code corresponding to given ip address

Discussion in 'PHP' started by dinesh1985singh, Feb 8, 2011.

  1. #1
    Hi all,

    I want to get the zip code from an ip address of the client machine.I am using http://ipinfodb.com api to get my task done. I am getting almost every thing except zip code,Gmt offset,and timezone.
    You can check it here :http://api.ipinfodb.com/v2/ip_query.php?key=7e3d3f24491b21b01d91fbeddd6954c4bd917189e546717b5bf8e5f05ab67eeb&ip=121.245.223.73&timezone=true

    on this url I am getting every thing done

    But on implementing the same thing on my testing site :
    http://dev.bottlenotes.com/ipinfoDb.php

    Info db provide his own class .

    Please help me out in this regard or you can give me an alternative link from where I can get my task done .

    I am basically looking for a free ip to zip code look up service.

    Thanks .
     
    dinesh1985singh, Feb 8, 2011 IP
  2. deny

    deny Active Member

    Messages:
    365
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    ZIP Code on mostly all IP tracking website is usually only for USA IP addresses.

    Try with IP service from IP-address.org below:
    IP Address

    Maybe you will have more luck. By testing your IP address they show timezone for IP.
     
    Last edited: Feb 9, 2011
    deny, Feb 9, 2011 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    IP to Zip is not accurate. Take AOL for example, they will show up as a single IP address no matter where in the country the visitor is from. If you can get IP to city, it's about as accurate as you will possibly get and I would venture to say that it is probably only 50 - 60% correct at best.
     
    jestep, Feb 9, 2011 IP