using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GPSBusiness.Model
{
///
/// 路径规划实体
///
public class PathPlanning
{
///
/// 返回状态
/// 值为0或1 1:成功;0:失败
///
[JsonProperty("status")]
public object Status { get; set; }
///
/// 返回的状态信息
/// status为0时,info返回错误原;否则返回“OK”。详情参阅info状态表
///
[JsonProperty("info")]
public object Info { get; set; }
///
/// 返回结果总数目
///
[JsonProperty("count")]
public object Count { get; set; }
///
/// 路线信息列表
///
[JsonProperty("route")]
public Route Routes { get; set; }
}
public class Route
{
///
/// 起点坐标
///
[JsonProperty("origin")]
public object Origin { get; set; }
///
/// 终点坐标
///
[JsonProperty("destination")]
public object Destination { get; set; }
///
/// 步行方案
///
[JsonProperty("paths")]
public List Paths { get; set; }
}
public class Path
{
///
/// 起点和终点的步行距离
/// 单位:米
///
[JsonProperty("distance")]
public object Distance { get; set; }
///
/// 步行时间预计
/// 单位:秒
///
[JsonProperty("duration")]
public object Duration { get; set; }
///
/// 返回步行结果列表
///
[JsonProperty("steps")]
public List Steps { get; set; }
}
public class Step
{
///
/// 每段步行方案
///
[JsonProperty("instruction")]
public object Instruction { get; set; }
///
/// 方向
///
[JsonProperty("orientation")]
public object Orientation { get; set; }
///
/// 道路名称
///
[JsonProperty("road")]
public object Road { get; set; }
///
/// 此路段距离
///
[JsonProperty("distance")]
public object Distance { get; set; }
///
/// 此路段预计步行时间
///
[JsonProperty("duration")]
public object Duration { get; set; }
///
/// 此路段坐标点
///
[JsonProperty("polyline")]
public object Polyline { get; set; }
}
}