Comparison of various platforms to obtain location information through ip

Comparison of various platforms to obtain location information through ip

View ip parsing results

GeoLite2

Insert picture description here

Tencent Map

Individual developer (1w/5qps) Enterprise developer 300w/500qps

https://apis.map.qq.com/ws/location/v1/ip?key=${
    
    key}&ip=125.107.160.21
{
    
    
    "status": 0,
    "message": "query ok",
    "result": {
    
    
        "ip": "125.107.160.21",
        "location": {
    
    
            "lat": 30.08189,
            "lng": 120.49476
        },
        "ad_info": {
    
    
            "nation": "中国",
            "province": "浙江省",
            "city": "绍兴市",
            "district": "柯桥区",
            "adcode": 330603
        }
    }
}

Gaode Map

Personal 10w/100qps Personal certified developer 30w/200qps Enterprise developer 300w/1000qps

https://restapi.amap.com/v3/ip?key=${
    
    key}&ip=125.107.160.21
{
    
    
    "status": "1",
    "info": "OK",
    "infocode": "10000",
    "province": "浙江省",
    "city": "绍兴市",
    "adcode": "330600",
    "rectangle": "120.48087,29.92235722;120.6945026,30.0635414"
}

Baidu map

Personal 0.1w/10qps

http://api.map.baidu.com/location/ip?ak=${
    
    key}&ip=125.107.160.21&coor=bd09ll
{
    
    
    "address": "CN|浙江|绍兴|None|CHINANET|0|0",
    "content": {
    
    
        "address": "浙江省绍兴市",
        "address_detail": {
    
    
            "city": "绍兴市",
            "city_code": 293,
            "district": "",
            "province": "浙江省",
            "street": "",
            "street_number": ""
        },
        "point": {
    
    
            "x": "120.59246739",
            "y": "30.00236458"
        }
    },
    "status": 0
}

to sum up

platform advantage Disadvantage
GeoLite2 Local call, fast Without district and county information, the latitude and longitude are not accurate
Baidu map GPS accuracy is high No district information
Gaode Map More calls No district information
Tencent Map Relatively complete information The qps of a single key is only 5, and a user can create 5 keys

Guess you like

Origin blog.csdn.net/chen_cxl/article/details/111629166