GoogleMapResultView.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain.ViewModels.SmallFun
  7. {
  8. /// <summary>
  9. /// googleMapApi 返回试图
  10. /// </summary>
  11. public class GoogleMapResultView
  12. {
  13. /// <summary>
  14. /// 地理编码路径点
  15. /// </summary>
  16. public object? Geocoded_waypoints { get; set; }
  17. /// <summary>
  18. /// 返回数据源
  19. /// </summary>
  20. public object? Routes { get; set; }
  21. /// <summary>
  22. /// 状态
  23. /// </summary>
  24. public string? Status { get; set; }
  25. }
  26. /// <summary>
  27. /// 途径
  28. /// </summary>
  29. public class Routes
  30. {
  31. /// <summary>
  32. /// 界标
  33. /// </summary>
  34. public Bounds? Bounds { get; set; }
  35. /// <summary>
  36. /// 版权保护
  37. /// </summary>
  38. public string? CopyRights { get; set; }
  39. }
  40. #region bounds 界标
  41. /// <summary>
  42. /// 界标
  43. /// </summary>
  44. public class Bounds {
  45. /// <summary>
  46. /// 东北方
  47. /// </summary>
  48. public Northeast? Northeast { get; set; }
  49. /// <summary>
  50. /// 西南方
  51. /// </summary>
  52. public Southwest? Southwest { get; set; }
  53. }
  54. /// <summary>
  55. /// 东北方
  56. /// </summary>
  57. public class Northeast
  58. {
  59. /// <summary>
  60. /// 纬度
  61. /// </summary>
  62. public string? Lat { get; set; }
  63. /// <summary>
  64. /// 经度
  65. /// </summary>
  66. public string Lng { get; set; }
  67. }
  68. /// <summary>
  69. /// 西南方
  70. /// </summary>
  71. public class Southwest
  72. {
  73. /// <summary>
  74. /// 纬度
  75. /// </summary>
  76. public string? Lat { get; set; }
  77. /// <summary>
  78. /// 经度
  79. /// </summary>
  80. public string Lng { get; set; }
  81. }
  82. #endregion
  83. #region leg
  84. /// <summary>
  85. /// Leg
  86. /// </summary>
  87. public class Leg
  88. {
  89. /// <summary>
  90. /// 距离
  91. /// </summary>
  92. public TextValue? Distance { get; set; }
  93. /// <summary>
  94. /// 时长
  95. /// </summary>
  96. public TextValue? Duration { get; set; }
  97. /// <summary>
  98. /// 结束地址
  99. /// </summary>
  100. public string? End_address { get; set; }
  101. /// <summary>
  102. /// 结束地址经纬度
  103. /// </summary>
  104. public LatLng? End_location { get; set; }
  105. /// <summary>
  106. /// 开始地址
  107. /// </summary>
  108. public string? Start_address { get; set; }
  109. /// <summary>
  110. /// 开始地址经纬度
  111. /// </summary>
  112. public LatLng? Start_location { get; set; }
  113. /// <summary>
  114. /// Step
  115. /// </summary>
  116. public List<Step>? Steps { get; set; }
  117. }
  118. /// <summary>
  119. /// Step
  120. /// </summary>
  121. public class Step
  122. {
  123. /// <summary>
  124. /// 距离
  125. /// </summary>
  126. public TextValue? Distance { get; set; }
  127. /// <summary>
  128. /// 耗时
  129. /// </summary>
  130. public TextValue? Duration { get; set; }
  131. /// <summary>
  132. /// 结束经纬度
  133. /// </summary>
  134. public LatLng? End_location { get; set; }
  135. /// <summary>
  136. /// html指令
  137. /// </summary>
  138. public string? Html_instructions { get; set; }
  139. /// <summary>
  140. /// 多线
  141. /// </summary>
  142. public Polyline? Polyline { get; set; }
  143. /// <summary>
  144. /// 开始经纬度
  145. /// </summary>
  146. public LatLng? Start_location { get; set; }
  147. /// <summary>
  148. /// 出行方式
  149. /// </summary>
  150. public string? Travel_mode { get; set; }
  151. }
  152. /// <summary>
  153. /// 多线
  154. /// </summary>
  155. public class Polyline
  156. {
  157. /// <summary>
  158. /// 目的
  159. /// </summary>
  160. public string? Points { get; set; }
  161. }
  162. /// <summary>
  163. /// 文本值
  164. /// </summary>
  165. public class TextValue
  166. {
  167. /// <summary>
  168. /// 文本
  169. /// </summary>
  170. public string? Text { get; set; }
  171. /// <summary>
  172. /// 值
  173. /// </summary>
  174. public int Value { get; set; }
  175. }
  176. /// <summary>
  177. /// 经纬度值
  178. /// </summary>
  179. public class LatLng
  180. {
  181. /// <summary>
  182. /// 纬度
  183. /// </summary>
  184. public string? Lat { get; set; }
  185. /// <summary>
  186. /// 经度
  187. /// </summary>
  188. public string Lng { get; set; }
  189. }
  190. #endregion
  191. }