ip定位
- 请求方法
Get
- 请求地址
https://api.tongji.edu.cn/v1/tool/map/ip
- 请求示例
curl --location 'https://api.tongji.edu.cn/v1/tool/map/ip?ip=114.247.50.2
--header 'Authorization: Bearer e447e4b4b8e23973b42c44b8d324242''
- 输出示例
{
"status": "1",
"info": "OK",
"infocode": "10000",
"province": "北京市",
"city": "北京市",
"adcode": "110000",
"rectangle": "116.0119343,39.66127144;116.7829835,40.2164962"
}
具体输入输出可参考https://lbs.amap.com/api/webservice/guide/api/ipconfig