# IP定位
- 1.获取IP
~~~[api]
get:/location/index/getip
<<<
success
{
"ip": "125.76.52.170"
}
~~~
- 2.IP定位
~~~[api]
get:/location
<<<
success
{
"status": true,
"resdata": {
"address": "CN|天津|天津|None|DXTNET|0|0",
"content": {
"address": "天津市",
"address_detail": {
"city": "天津市",
"city_code": 332,
"district": "",
"province": "天津市",
"street": "",
"street_number": ""
},
"point": {
"x": "117.21081309",
"y": "39.14392990"
}
},
"status": 0
}
}
~~~