Code Monkey home page Code Monkey logo

ip2geo's Introduction

ip2geo

本项目是对网络上提供的根据IP地址查询地理位置服务的封装。由于网络上提供的查询服务会有调用频率等限制,本项目是为了缓解这些限制。比如当调用A公司的服务频率达到上限时,可以自动转而调用B公司的服务,或者轮流使用多家服务。

目前支持新浪、淘宝和百度三家的服务
1.新浪:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=61.135.152.194
2.淘宝:http://ip.taobao.com/instructions.php
3.百度:http://api.map.baidu.com/lbsapi/cloud/ip-location-api.htm

从测试来看新浪对国内国外IP的支持都比较好,淘宝对国外的IP返回的位置信息比较简洁,百度完全不支持国外IP,国内IP的位置信息不够详细

ip2geo's People

Contributors

lanhuidong avatar

Stargazers

 avatar cxyxiaokui avatar Mr. TooRich avatar  avatar jeski avatar  avatar Richard avatar jiangnan avatar  avatar Norman Xu avatar Niu avatar Frank Dai avatar

Watchers

James Cloos avatar  avatar Vincent Yu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.