using System.Collections.Generic;
using Newtonsoft.Json;
namespace Masuit.Tools.Models
{
///
/// 详细地理信息
///
public class PhysicsAddress
{
///
/// 返回状态,0正常,1出错
///
[JsonProperty("status")]
public int Status { get; set; }
///
/// 返回结果集
///
[JsonProperty("result")]
public AddressResult AddressResult { get; set; }
}
///
/// 返回结果集
///
public class AddressResult
{
///
/// 经纬度
///
[JsonProperty("location")]
public Location Location { get; set; }
///
/// 详细地址
///
[JsonProperty("formatted_address")]
public string FormattedAddress { get; set; }
///
/// 商业地址
///
[JsonProperty("business")]
public string Business { get; set; }
///
/// 地理信息成分
///
[JsonProperty("addressComponent")]
public AddressComponent AddressComponent { get; set; }
///
/// 参考地址
///
[JsonProperty("pois")]
public List Pois { get; set; }
///
/// 语义描述
///
[JsonProperty("sematic_description")]
public string SematicDescription { get; set; }
}
///
/// 经纬度
///
public class Location
{
///
/// 经度
///
[JsonProperty("lng")]
public double Lng { get; set; }
///
/// 纬度
///
[JsonProperty("lat")]
public double Lat { get; set; }
}
///
/// 地理信息成分
///
public class AddressComponent
{
///
/// 国家
///
[JsonProperty("country")]
public string Country { get; set; }
///
/// 国家代码
///
[JsonProperty("country_code")]
public int CountryCode { get; set; }
///
/// 省
///
[JsonProperty("province")]
public string Province { get; set; }
///
/// 市
///
[JsonProperty("city")]
public string City { get; set; }
///
/// 区
///
[JsonProperty("district")]
public string District { get; set; }
///
/// 街道
///
[JsonProperty("street")]
public string Street { get; set; }
///
/// 门牌号
///
[JsonProperty("street_number")]
public string StreetNumber { get; set; }
///
/// 方位
///
[JsonProperty("direction")]
public string Direction { get; set; }
///
/// 距离
///
[JsonProperty("distance")]
public string Distance { get; set; } = "0";
}
///
/// 参考位置
///
public class Pois
{
///
/// 地理位置详细
///
[JsonProperty("addr")]
public string AddressDetail { get; set; }
///
/// 方位
///
[JsonProperty("direction")]
public string Direction { get; set; }
///
/// 距离
///
[JsonProperty("distance")]
public string Distance { get; set; } = "0";
///
/// 建筑物名字
///
[JsonProperty("name")]
public string Name { get; set; }
///
/// 建筑物类型
///
[JsonProperty("poiType")]
public string PoiType { get; set; }
///
/// 经纬度
///
[JsonProperty("point")]
public LatiLongitude Point { get; set; }
///
/// 标签
///
[JsonProperty("tag")]
public string Tag { get; set; }
}
}