You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
3.2 KiB

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GPSBusiness.Model
{
public class TXMapLocation
{
/// <summary>
/// 状态码,0为正常,其它为异常
/// </summary>
[JsonProperty("status")]
public int Status { get; set; }
/// <summary>
/// 状态说明
/// </summary>
[JsonProperty("message")]
public string Message { get; set; }
/// <summary>
/// 本次请求的唯一标识
/// </summary>
[JsonProperty("request_id")]
public string Request_Id { get; set; }
/// <summary>
/// 解析结果
/// </summary>
[JsonProperty("data")]
public List<Data> Data { get; set; }
}
public class Data
{
/// <summary>
/// 以行政区划+道路+门牌号等信息组成的标准格式化地址
/// </summary>
[JsonProperty("id")]
public string Id { get; set; }
/// <summary>
/// 以行政区划+道路+门牌号等信息组成的标准格式化地址
/// </summary>
[JsonProperty("address")]
public string Address { get; set; }
/// <summary>
/// 以行政区划+道路+门牌号等信息组成的标准格式化地址
/// </summary>
[JsonProperty("category")]
public string category { get; set; }
///// <summary>
///// 结合知名地点形成的描述性地址,更具人性化特点
///// </summary>
//[JsonProperty("formatted_addresses")]
//public Formatted_Addresses Formatted_Addresses { get; set; }
///// <summary>
///// 地址部件,address不满足需求时可自行拼接
///// </summary>
//[JsonProperty("address_component")]
//public Address_Component Address_Component { get; set; }
}
public class Formatted_Addresses
{
/// <summary>
/// 地址描述
/// </summary>
[JsonProperty("recommend")]
public string Recommend { get; set; }
/// <summary>
/// 粗略位置描述
/// </summary>
[JsonProperty("rough")]
public string Rough { get; set; }
}
public class Address_Component
{
/// <summary>
/// 国家
/// </summary>
[JsonProperty(" nation")]
public string Nation { get; set; }
/// <summary>
/// 省
/// </summary>
[JsonProperty("province")]
public string Province { get; set; }
/// <summary>
/// 市
/// </summary>
[JsonProperty("city")]
public string City { get; set; }
/// <summary>
/// 区,可能为空字串
/// </summary>
[JsonProperty("district")]
public string District { get; set; }
/// <summary>
/// 街道,可能为空字串
/// </summary>
[JsonProperty("street")]
public string Street { get; set; }
/// <summary>
/// 门牌,可能为空字串
/// </summary>
[JsonProperty("street_number")]
public string Street_Number { get; set; }
}
}