功能介绍

IP定位:通过终端设备IP地址获取其当前所在地理位置,精确到市级,常用于显示当地城市天气预报、初始化用户城市等非精确定位场景

功能文档

IP定位:https://www.free-api.com/doc/349

功能演示

Params
key/string/必填
ip/string/选填
output/string/选填
callback/string/选填
GET
https://apis.map.qq.com/ws/location/v1/ip?ip=61.135.17.68&key=yourkey
Header
header: Content-Type: "application/x-www-form-urlencoded"