panxianhai
V2EX  ›  问与答

怎么使用IP定位浏览者城市的?

  •  
  •   panxianhai · Aug 9, 2013 · 3481 views
    This topic created in 4748 days ago, the information mentioned may be changed or developed.
    我想到的解决方案:

    1.新浪的一个接口,但是没有任何的文档信息,虽然也不怎么需要。只是不清楚这个接口的限制,比如淘宝那个就有限制,大家有知道这个的限制条件吗?

    地址为:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=58.124.65.222

    2.纯真ip数据库。这个返回的结果类似上海市电信,上海市联通,还需要进一步处理。

    3.maxmind免费版本。这个没有具体用过,国外的会不会对于国内的地址不太准确?
    2 replies    1970-01-01 08:00:00 +08:00
    DreaMQ
        2
    DreaMQ  
       Aug 10, 2013 via Android
    whatismy iPad dress.com
    这个对国内也挺准的
    或者直接whois也行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1432 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:00 · PVG 08:00 · LAX 17:00 · JFK 20:00
    ♥ Do have faith in what you're doing.