namespace Znyc.Cloudcar.Admin.Commons.Net.TencentIp { /// /// 通过终端设备IP地址获取其当前所在地理位置,精确到市级,常用于显示当地城市天气预报、初始化用户城市等非精确定位场景。 /// 响应结果 /// public class TencentIpResult { /// /// 状态状态码, /// 0为正常, /// 310请求参数信息有误, /// 311Key格式错误, /// 306请求有护持信息请检查字符串, /// 110请求来源未被授权 /// public int status { get; set; } /// /// 对status的描述 /// public string message { get; set; } /// /// IP定位结果 /// public IpResult result { get; set; } } /// /// IP定位结果 /// public class IpResult { /// /// 用于定位的IP地址 /// public string ip { get; set; } /// /// 定位坐标 /// public Location location { get; set; } /// /// 定位行政区划信息 /// public Adinfo ad_info { get; set; } } /// /// 定位坐标 /// public class Location { /// /// 纬度 /// public decimal lat { get; set; } /// /// 经度 /// public decimal lng { get; set; } } /// /// 定位行政区划信息 /// public class Adinfo { /// /// 国家 /// public string nation { get; set; } /// /// 省 /// public string province { get; set; } /// /// 市 /// public string city { get; set; } /// /// 区 /// public string district { get; set; } /// /// 行政区划代码 /// public int adcode { get; set; } } }